note 17581 added to function.split
| From: | gatha at artwithin dot com | Date: | Sat, 15 Dec 2001 01:15:53 +0000 |
| Subject: | note 17581 added to function.split | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-22829@lists.php.net to get a copy of this message | ||
I rather think that the above snippet could be modified to
<?php
$keyword = "this is a test";
$k = array(split(" ", $keyword));
for($i=0; $i<count($k); $i++) {
echo "$k[$i]\n";
}
?>
--
http://www.php.net/manual/en/function.split.php
http://master.php.net/manage/user-notes.php?action=edit+17581
http://master.php.net/manage/user-notes.php?action=delete+17581
http://master.php.net/manage/user-notes.php?action=reject+17581