Hi Joseph,

@ 12:08:46 PM on 4/15/2001, Joseph Bannon wrote:

> What is the function to search a string? Basically, I want search a string
> (a url) to see if it has "www.yahoo.com" in it and if yes, tell the user
> their submission cannot be accepted.

<?php

$string = 'www.yahoo.com';
print(strstr($string,'yahoo.com') ? 'Failed.' : 'Passes');

?>

-Brian
--
 PGP is spoken here: 0xE4D0C7C8
 Please, DO NOT carbon copy me on list replies.



-- 
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]

Reply via email to