note 63187 added to function.explode

From: Date: Wed, 15 Mar 2006 16:56:22 +0000
Subject: note 63187 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-105864@lists.php.net to get a copy of this message
To "explode" a string or real without separators but regular string lengths, use str_split(string,times), <?php $num = 635462; $times = 1; $numarr = str_split($num,$times); print_r($numarr); ?> Outputs: Array ( [0] => 6 [1] => 3 [2] => 5 [3] => 4 [4] => 6 [5] => 2 ) ---- Server IP: 203.220.0.234 Probable Submitter: 58.178.196.89 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.explode.php Edit -- http://master.php.net/note/edit/63187 Del: integrated -- http://master.php.net/note/delete/63187/integrated Del: useless -- http://master.php.net/note/delete/63187/useless Del: bad code -- http://master.php.net/note/delete/63187/bad+code Del: spam -- http://master.php.net/note/delete/63187/spam Del: non-english -- http://master.php.net/note/delete/63187/non-english Del: in docs -- http://master.php.net/note/delete/63187/in+docs Del: other reasons-- http://master.php.net/note/delete/63187 Reject -- http://master.php.net/note/reject/63187 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#105864) next »