note 20562 added to function.split

From: Date: Mon, 08 Apr 2002 13:36:44 +0000
Subject: note 20562 added to function.split
Groups: php.notes 
Request: Send a blank email to php-notes+get-28952@lists.php.net to get a copy of this message
This is somewhat OT, but the example Perl code $chars = split('', $str) shown above is not correct; it should be @chars instead of $chars. Otherwise you'd get the number of characters, not an array of all characters in $str. -- http://www.php.net/manual/en/function.split.php http://master.php.net/manage/user-notes.php?action=edit+20562 http://master.php.net/manage/user-notes.php?action=delete+20562 http://master.php.net/manage/user-notes.php?action=reject+20562

« previous php.notes (#28952) next »