note 17191 deleted from function.split by jimw
| From: | jimw@php.net | Date: | Mon, 17 Dec 2001 23:36:28 +0000 |
| Subject: | note 17191 deleted from function.split by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23097@lists.php.net to get a copy of this message | ||
if you do this in perl
@k = split(" ", $keyword);
you need to do
<?php
$keyword = "this is a test";
list ($k)=array(split(" ", $keyword));
for($i=0; $i<count($k); $i++) {
echo "$k[$i]<br>\n";
}
?>