Re: bug in str_split function?
| From: | chris | Date: | Fri, 21 Jan 2005 19:39:55 +0000 |
| Subject: | Re: bug in str_split function? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206973@lists.php.net to get a copy of this message | ||
No good.
I made the change to this (note the echo ping statements)
/////////////////// start
<?PHP
$test='this is test';
echo $test;
echo '<br>ping 1<br>';
$test2=str_split($test);
echo 'ping 2<br>';
echo '<pre>';
for($i=0;$i<count($test2);$i++)
{
print_r($test2[$i]);
}
echo '</pre>';
?>
/////////////////// end
result is now
/////////////////
this is test
ping 1
/////////////////
"Greg Donald" <destiney@gmail.com> wrote in message
news:ea9da26c050121102849a9c9e8@mail.gmail.com...
> On Fri, 21 Jan 2005 12:07:34 -0600, chris <chrisj@data-trak.com> wrote:
>> $test2=str_split($test);
>
> Do echo '<pre>'; print_r( $test2 ); right here and see if the $test2
> array has the data you expect.
>
>
> --
> Greg Donald
> Zend Certified Engineer
> http://destiney.com/
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.817 / Virus Database: 555 - Release Date: 12/15/2004