Lasso Soft Inc. > Home

[ Pair ]


[Pair] creates a new pair from a single name/value parameter. The name and the value can be of any data type.

  • Syntax
  • Methods
  • Traits
pair( name, value )
Has methods:
  • Beginner

To add a pair to a pair array:

Use the [pair] method to create a new pair and the [array->insert] method to insert it at the end of an array. The following example adds a new name/value pair to the end of an array of pairs describing some guy.


var( someGuy = array( 'Last_Name' = 'Doe', 'Sex' = 'Male', 'Height' = '188cm') )
var( newPair = pair('First_Name', 'John') )
$someGuy->insert( $newPair )



array((Last_Name = Doe), (Sex = Male), (Height = 188cm), (First_Name = John))

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home



©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft