note 54300 added to function.preg-split
| From: | turgut85 at hotmail dot com | Date: | Thu, 30 Jun 2005 00:32:22 +0000 |
| Subject: | note 54300 added to function.preg-split | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91166@lists.php.net to get a copy of this message | ||
<?PHP
// converting a string to a char array //
$str = " A Sample String to ";
$array = preg_split("//",$str);
print_r($array);
?>
Turgut Z. YESILYURT, MS
System and Application Architect
New Jersey, USA
Array
(
[0] =>
[1] =>
[2] => S
[3] => a
[4] => m
[5] => p
[6] => l
[7] => e
[8] =>
[9] => S
[10] => t
[11] => r
[12] => i
[13] => n
[14] => g
[15] =>
[16] => t
[17] => o
[18] =>
[19] =>
)
----
Manual Page -- http://www.php.net/manual/en/function.preg-split.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54300
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54300&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54300&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54300&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54300&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54300&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54300&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54300&report=yes
Search -- http://master.php.net/manage/user-notes.php