Which PHP version is required for str_split?

Posted by SpawnCxy on Stack Overflow See other posts from Stack Overflow or by SpawnCxy
Published on 2010-03-21T02:01:15Z Indexed on 2010/03/21 2:11 UTC
Read the original article Hit count: 510

Filed under:
|
|

I relogin to my server in dreamhost and test some scripts.And I found I couldn't use str_split. Message of Undefined function was given.I checked the version in the server and its PHP Version is 5.2.12.And I just wonder which version is required?Thanks.

Testcode:

<?php
$arr = str_split("lsdjflsdjflsdjflsdjfl");
print_r($arr);
?>

Message:

Fatal error: Call to undefined function:  str_split() in /test.php on line 3

© Stack Overflow or respective owner

Related posts about php

Related posts about version