|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-08-06 13:11 UTC] andrei@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 08:00:01 2025 UTC |
Look at the following code: <? $price = "66950"; $formatado = preg_split ('//', $price, 0, PREG_SPLIT_NO_EMPTY); $formatado_reverso = array_reverse ($formatado ); $escalar = sizeof($formatado); echo $escalar; ?> In php4.0.4pl1 the result is "5", in php4.0.5 the result is "1". I also tried version 1.92 in CVS of /ext/pcre/php_pcre.c but I got the same result. Is this a bug or a change in design ? Thanks Renato - Brasil.