note 38051 added to function.explode

From: Date: Sat, 06 Dec 2003 05:54:39 +0000
Subject: note 38051 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-61471@lists.php.net to get a copy of this message
An explode that splits character by character (with no spliter) <? // array split_by_char (string str) function split_by_char($str) { $len = strlen($str); $streturn = array(); for ($i=0; $i<$len; $i++) { $streturn[$i] = substr($str, $i, 1); } return $streturn; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.explode.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+38051 Delete -- http://master.php.net/manage/user-notes.php?action=delete+38051&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+38051&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61471) next »