Splash  
About WOCNews, Help, etc.Build AreasContributor CreditsUseful Links

Login

    BlobbieScript

    Features
    Expressions
    Operators
    Variables
    Resolutions
    Functions
    Triggers
    Examples

    Print Manual
%arrayValuesToKeys()
  
Aliases%arrayValuesToKeys( )
Parametersarray @array, [, array @array2 [, array @array3 [, ... ] ] ]

    Returns a new array for which the keys are the values of all the given
arrays.

Example:

@foo = %array( one, two, three, four )
%printValue( @foo, @self )

@fee = %array( four, five, six, seven )
%printValue( @fee, @self )

@new = %arrayValuesToKeys( @foo, @fee )
%printValue( @new, @self )

Output:

[foo] => (array)
(
[1] => (string)[one]
[2] => (string)[two]
[3] => (string)[three]
[4] => (string)[four]
)

[fee] => (array)
(
[1] => (string)[four]
[2] => (string)[five]
[3] => (string)[six]
[4] => (string)[seven]
)

[new] => (array)
(
[one] => (string)[one]
[two] => (string)[two]
[three] => (string)[three]
[four] => (string)[four]
[five] => (string)[five]
[six] => (string)[six]
[seven] => (string)[seven]
)


The Worlds of Carnage MUD is a non-profit, fantasy oriented, text-based game that is played over telnet. We are devoted to providing a social medium in which people can have fun while immersing themselves in a game that reads like a book. You can connect by clicking here or if that fails then here. This site is maintained and hosted by Robert Cummings, A.K.A Blobule and is powered by InterJinn, a PHP based multi-tier application framework connected to a MySQL backend and served via an Apache web server. The Worlds of Carnage are often recognized via the following aliases: Carnage; WoC; WoC MUD; Carnage MUD; CarnageMUD; WoCMUD. All submissions become the property of Robert Cummings where the submitter holds copyright. If you do not want to give ownership, then do not submit.