Re: bug in str_split function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote in message 
news:ea9da26c050121102849a9c9e8@xxxxxxxxxxxxxxxxx
> On Fri, 21 Jan 2005 12:07:34 -0600, chris <chrisj@xxxxxxxxxxxxx> 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 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux