explode question

From: Date: Wed, 07 Mar 2001 19:08:38 +0000
Subject: explode question
Groups: php.general 
Request: Send a blank email to php-general+get-42938@lists.php.net to get a copy of this message
Hello again, I'd better explain better. I have logon screen Header("WWW-Authenticate: Basic realm=\"whatever\""); where I would like the compare the user name $PHP_AUTH_USER with the one in my database All names like Mike or mike are @ seperated strings How can I check the names from this array $arrLoginName = explode("@", $row->usr_loginName) and return true if a name in the var $arrLoginName == $PHP_AUTH_USER How can I construct a loop which stops and returns true if a match is found? Any hints would be great. Many thanks Roland

« previous php.general (#42938) next »