Lasso Soft Inc. > Home

[ array->asString ]

Method

Outputs the array as a string. This method is used for debugging purposes.

  • Syntax
array->asString
Examples
  • Beginner

Convert a variable of array type to string type

As this example shows, even though the outputs look the same, they are different.

Code

var( People_Array = array('John Doe','Jane Doe', 'Joe Surname', 'John Doe') )

var( People_String = $People_Array->asString )

'People_Array: '+$People_Array+', is type: ' + $People_Array->type + '\n'

'People_String: '+$People_String+', is type: ' + $People_String->type

Result

People_Array: array(John Doe, Jane Doe, Joe Surname, John Doe), is type: array
People_String: array(John Doe, Jane Doe, Joe Surname, John Doe), is type: string

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