note 17191 added to function.split

From: Date: Thu, 29 Nov 2001 05:40:27 +0000
Subject: note 17191 added to function.split
Groups: php.notes 
Request: Send a blank email to php-notes+get-21415@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"; } ?> -- http://www.php.net/manual/en/function.split.php http://master.php.net/manage/user-notes.php?action=edit+17191 http://master.php.net/manage/user-notes.php?action=delete+17191 http://master.php.net/manage/user-notes.php?action=reject+17191

« previous php.notes (#21415) next »