Split string: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle Created page with '{{ #vardefine:name|split_string}}{{ #vardefine:return_type|string [int]}}{{ #vardefine:aggregate|yes}}{{ FunctionPage| name={{#var:name}}| function_category=String Handling Rout…' |
imported>Bale mNo edit summary |
||
Line 6: | Line 6: | ||
FunctionPage| | FunctionPage| | ||
name={{#var:name}}| | name={{#var:name}}| | ||
function1={{Function| | function1={{Function| | ||
Line 33: | Line 32: | ||
special=This function technically returns an array, not an aggregate. The information in both is accessed in the same way. However, you cannot add new key-value pairs to an array (it's length is static once set).| | special=This function technically returns an array, not an aggregate. The information in both is accessed in the same way. However, you cannot add new key-value pairs to an array (it's length is static once set).| | ||
}} | }} | ||
[[Category:String Handling Routines]] |
Revision as of 05:12, 22 May 2010
needs(code_samples);
Function Syntax
string [int] split_string(string source )
string [int] split_string(string source ,string delimiter )
- source is the string to split
- delimiter is the (optional) string to split at
Returns an array of your source, split by either delimiter or by line-breaks if not supplied.
Special
This function technically returns an array, not an aggregate. The information in both is accessed in the same way. However, you cannot add new key-value pairs to an array (it's length is static once set).