Shop OBEX P1 Docs P2 Docs Learn Events
Parsing String data — Parallax Forums

Parsing String data

eagletalontimeagletalontim Posts: 1,399
edited 2014-11-28 16:19 in Propeller 1
Is there a .Spin file that has string functions in it that may possible include a PHP equivalent to "explode"?

Example :
<?
$string = "a|b|c|d|efg";
$strarray = explode("|", $string);
echo "<pre>";
print_r($strarray);
echo "</pre>";
?>
// Output :
$string[0] = "a"
$string[1] = "b"
$string[2] = "c"
$string[3] = "d"
$string[4] = "efg"

Comments

Sign In or Register to comment.