Looks like the function str_split() is a PHP 5 addition, so I guess it might be because you are using php 4?

You can also do this with substr() function...
Something like this:
       $str = "abcdefg";
       $arr = Array();
       for($i=0; $i< strlen($str); $i++) {
               $arr[] = substr($str, $i, 1);


Asim wrote:
when i try to use this function str_split() it shows me as invalid function what is solution i want to split certain length of string into an array bye

Asim Jamil  - 0092 345 4025907, Pakistan
--------------------------------- Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search.

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

Reply via email to