|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-12-19 23:29 UTC] scott at thebrain dot ca
Description:
------------
Current:
$var = strspn("42 is the answer, what is the question ...", "1234567890"); will assign 2 to $var...
Index position 2 can be confused with character data '2'.
Suggestion:
$var = strspn("AB is the answer, what is the question ...", "ABCDEFGHIJ"); will assign 2 to $var...
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Jun 18 13:00:01 2026 UTC |
Current: $var = strspn("42 is the answer, what is the question ...", "1234567890"); will assign 2 to $var... Span length of 2 can be confused with character data '2'. Suggestion: $var = strspn("AB is the answer, what is the question ...", "ABCDEFGHIJ"); will assign 2 to $var...