note 14364 added to function.explode.php
| From: | kartoon at programmer dot net | Date: | Fri, 27 Jul 2001 20:19:56 +0000 |
| Subject: | note 14364 added to function.explode.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-15951@lists.php.net to get a copy of this message | ||
<?php
$i = "www dot perfect-pixel dot f2s dot com";
$array = explode(" ",$i);
for($i = "0"; $i < sizeof($array); $i++) { print $array[$i] .
"\n<br>\n"; }
?>
will print out the following:
www
dot
perfect-pixel
dot
f2s
dot
com
------------------------------------
simple enough right ?
http://www.php.net/manual/en/function.explode.php