latheesan
10-02-2007, 12:20 PM
Hello,
I was working on a project on my laptop, which had latest XAMPP installed on it, so i was using PHP 5.
In my script, i was using this function str_split() to split really long string into smaller chunks like this (for example):
$arr = str_split("abcdefghijklmnopqrstuvwxyz",3);
Then when i was finished with my script, i uploaded it to my linux server and it seems my host is using php 4.4, so im starting to get this error:
Fatal error: Call to undefined function: str_split() in /home/admin/domains/mydomain.com/public_html/index.php on line 60
Is there a similar function as split_str() in PHP 4 or can i acheive this some other way?
I was working on a project on my laptop, which had latest XAMPP installed on it, so i was using PHP 5.
In my script, i was using this function str_split() to split really long string into smaller chunks like this (for example):
$arr = str_split("abcdefghijklmnopqrstuvwxyz",3);
Then when i was finished with my script, i uploaded it to my linux server and it seems my host is using php 4.4, so im starting to get this error:
Fatal error: Call to undefined function: str_split() in /home/admin/domains/mydomain.com/public_html/index.php on line 60
Is there a similar function as split_str() in PHP 4 or can i acheive this some other way?
