php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27527 str_split() function call error
Submitted: 2004-03-08 09:34 UTC Modified: 2004-03-08 09:38 UTC
From: rage at c2 dot hu Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.3.4 OS: Linux ns1 2.4.22 #2 SMP
Private report: No CVE-ID: None
 [2004-03-08 09:34 UTC] rage at c2 dot hu
Description:
------------
I tried to use the str_split() function as described in the current version of the PHP online manual when the following problem occured:

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

Reproduce code:
---------------
<?php
var_dump(str_split("abcdefgh"));
?>

Expected result:
----------------
array(8) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" [3]=> string(1) "d" [4]=> string(1) "e" [5]=> string(1) "f" [6]=> string(1) "g" [7]=> string(1) "h" }

Actual result:
--------------
Fatal error: Call to undefined function: str_split() in test.php on line 2

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-08 09:38 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

This function is avaliable in PHP 5.0 ONLY. 
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 22:01:31 2025 UTC