ID: 42025
Updated by: [EMAIL PROTECTED]
Reported By: xatyonline at gmail dot com
-Status: Open
+Status: Feedback
Bug Type: Strings related
Operating System: Linux
PHP Version: 5.2.3
New Comment:
The expected result is 0 8 8 for your code, so what is the problem?
Previous Comments:
------------------------------------------------------------------------
[2007-07-18 09:01:27] xatyonline at gmail dot com
Description:
------------
strpos($str, $needles, $offset);
if $str haves ':',
if $needles have ':',
then $offset does not have mean.
Reproduce code:
---------------
$str = "::soon::::soon::::soon::";
for($i=0; $i<3; $i++)
{
echo(strpos($str, "::soon::", $i).' ');
}
Expected result:
----------------
Normal
--------------------------------------
0 8 16
result
----------------------------------------
0 8 8
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42025&edit=1