php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #38139 strspn: Wrong example in Spanish version
Submitted: 2006-07-19 10:53 UTC Modified: 2006-08-12 16:34 UTC
From: phpbugs at personal dot formauri dot es Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2006-07-19 10:53 UTC] phpbugs at personal dot formauri dot es
Description:
------------
Concerning the spanish version of the documentation:

http://es2.php.net/manual/es/function.strspn.php

The second example (the one demonstrating the extra start/length parameters) reads:

echo strspn("prueba", "u", 1, 4); // La salida es: 2

(La salida es: 2 = The output is: 2)

This is wrong; the output is 0. I suggest the following example instead:

echo strspn("zoolog?a", "o", 1, 3); // La salida es: 2



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-12 16:34 UTC] nlopess@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.


 [2020-02-07 14:18 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/es.git;a=commit;h=fca48a13f393635597d81d19806d18099cbe7b16
Log: fix bug #38139: bogus example
 [2020-12-30 11:09 UTC] nikic@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/es.git;a=commit;h=69ea6b57abadee4a06815e05e5438ceb4cc4d32f
Log: fix bug #38139: bogus example
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 22:01:31 2025 UTC