Rol wrote:
>
> Hello all,
>
> I would like to check some names ( @ seperated strings) with this global
>$PHP_AUTH_USER
>
> I first do
> $arrLoginName = explode("@", $row->usr_loginName);
>
> How can I construct a loop which stops and returns true if a match is found?
>
> Any hints would be great.
>
> Many thanks
>
> Roland
This will do it:
$dim = sizeof($arrLoginName);
for ($nr = 0; $nr < $dim; $nr++) {
if (match) {
return 1;
}
}
Greetings,
Jason
--
Jason Murray
Developer
http://www.jwebmedia.com/
1 877 525 jWEB
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]