|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-03-30 09:44 UTC] andrei at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Apr 14 19:00:01 2026 UTC |
// Sample Code $position = strpos("http://www.php.net", "."); echo substr("http://www.php.net", 0, $position); // Result http://www.php The problem is that according to the docs strpos is supposed to return the position of the 1st occurance of the character in the string (strpos -- Find position of first occurrence of a string).