> use: > preg_match('/\Wgood\W/',$var); > or > preg_match('/\bgood\b/',$var); Or, you could just try strstr($haystack, $needle) ... Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" -- 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]
- [PHP] Check if a word is in my string. Brandon Orther
- Re: [PHP] Check if a word is in my string. Philip Olson
- Re: [PHP] Check if a word is in my string. daniel james
- RE: [PHP] Check if a word is in my string. scott [gts]
- Re: [PHP] Check if a word is in my string. Papp Gyozo
- Jason Murray