note 73500 added to function.str-split

From: Date: Mon, 26 Feb 2007 16:32:13 +0000
Subject: note 73500 added to function.str-split
Groups: php.notes 
Request: Send a blank email to php-notes+get-123902@lists.php.net to get a copy of this message
Problem with the post below me is, that the string can not contain the splitter "-1-". Btw, here's my version. <?php function strsplit($str, $l=1) { do {$ret[]=substr($str,0,$l); $str=substr($str,$l); } while($str != ""); return $ret; } ?> ---- Server IP: 217.160.72.57 Probable Submitter: 85.159.8.11 ---- Manual Page -- http://www.php.net/manual/en/function.str-split.php Edit -- https://master.php.net/note/edit/73500 Del: integrated -- https://master.php.net/note/delete/73500/integrated Del: useless -- https://master.php.net/note/delete/73500/useless Del: bad code -- https://master.php.net/note/delete/73500/bad+code Del: spam -- https://master.php.net/note/delete/73500/spam Del: non-english -- https://master.php.net/note/delete/73500/non-english Del: in docs -- https://master.php.net/note/delete/73500/in+docs Del: other reasons-- https://master.php.net/note/delete/73500 Reject -- https://master.php.net/note/reject/73500 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123902) next »