note 73518 deleted from function.explode by bobby
| From: | bobby@php.net | Date: | Tue, 27 Feb 2007 20:01:04 +0000 |
| Subject: | note 73518 deleted from function.explode by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123932@lists.php.net to get a copy of this message | ||
Note Submitter: Nicoxinchao
----
A insensible case explode function :
function iExplode($Delimiter, $String)
{
$Explode = array();
$LastIni = 0;
while ( false !== ( $Ini = stripos($String, $Delimiter, $LastIni) ) )
{
$Explode[] = substr($String, $LastIni, $Ini-$LastIni);
$LastIni = $Ini+1;
}
$Explode[] = substr($String, $LastIni);
return $Explode;
}