|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-05-11 07:55 UTC] sas at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 19:00:02 2025 UTC |
$browser = "Mozilla"; if ( strpos($value, "Mozilla/") == 0) { ..... } $browser = "Lynx"; if ( strpos($value, "Mozilla/") == 0) { ..... } The function returns 0 , once because Mozilla is the first Character and secondly because Mozilla doesn't appear in "Lynx"