php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #65064 Error in strtok example
Submitted: 2013-06-19 14:40 UTC Modified: 2013-06-19 14:42 UTC
From: michali dot sarris at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michali dot sarris at gmail dot com
New email:
PHP Version: OS:

 

 [2013-06-19 14:40 UTC] michali dot sarris at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.strtok#refsect1-function.strtok-examples
---
In the example there's an error:

$tok = strtok(" \n\t");

which should be:

$tok = strtok($string, " \n\t");


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-06-19 14:42 UTC] michali dot sarris at gmail dot com
-Status: Open +Status: Closed
 [2013-06-19 14:42 UTC] michali dot sarris at gmail dot com
Never mind, I misread the description.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 13:00:02 2026 UTC