php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #28798 Documentation of strcspn() and strspn() is incorrect
Submitted: 2004-06-15 18:50 UTC Modified: 2004-06-16 10:30 UTC
From: ilia@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
 [2004-06-15 18:50 UTC] ilia@php.net
Description:
------------
As of PHP 4.0B1 both functions are binary safe. 
Additionally both functions accept 2 optional integer 
parameters that can be used to define the starting position 
and the length of the string to examine. 
 
ex.  
strspn("foo", "o", 1, 2); == strspn(substr("foo", 1, 2), 
"o"); 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-06-16 10:30 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 14 07:01:32 2024 UTC