note 63175 added to function.explode
| From: | scollo at scollo dot com | Date: | Wed, 15 Mar 2006 10:24:07 +0000 |
| Subject: | note 63175 added to function.explode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-105849@lists.php.net to get a copy of this message | ||
Use str_split() to "explode" a string into an array:
<?php
$digits = str_split ('1234567890');
print_r ($digits);
?>
Result:
Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => 6 [6] => 7 [7]
=> 8 [8] => 9 [9] => 0 )
----
Server IP: 85.116.0.130
Probable Submitter: 88.111.247.49
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.explode.php
Edit -- http://master.php.net/note/edit/63175
Del: integrated -- http://master.php.net/note/delete/63175/integrated
Del: useless -- http://master.php.net/note/delete/63175/useless
Del: bad code -- http://master.php.net/note/delete/63175/bad+code
Del: spam -- http://master.php.net/note/delete/63175/spam
Del: non-english -- http://master.php.net/note/delete/63175/non-english
Del: in docs -- http://master.php.net/note/delete/63175/in+docs
Del: other reasons-- http://master.php.net/note/delete/63175
Reject -- http://master.php.net/note/reject/63175
Search -- http://master.php.net/manage/user-notes.php