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

Login

    BlobbieScript

    Features
    Expressions
    Operators
    Variables
    Resolutions
    Functions
    Triggers
    Examples

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

    This function takes 2 or more arrays and returns a single unified array
with all of the values re-indexed from 1 onward. The order of the merge is
the same as the order of appearance in the parameter list.

Example:

@foo->1 = "Foo 1"
@foo->2 = "Foo 2"
@foo->3 = "Foo 3"

@fee->1 = "Fee 1"
@fee->2 = "Fee 2"
@fee->3 = "Fee 3"

@merged = %arrayMergeValues( @foo, @fee )

foreach( @merged as @key => @value )
{
echo Key: @key, Value: @value
}
endforeach

Output:

Key: 1, Value: Foo 1
Key: 2, Value: Foo 2
Key: 3, Value: Foo 3
Key: 4, Value: Fee 1
Key: 5, Value: Fee 2
Key: 6, Value: Fee 3


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.