ң

strstr

(PHP 3, PHP 4)

strstr - .

string strstr (string haystack, string needle)

haystack needle haystack .

needle , FALSE .

needle , integer .

: . ޣ stristr() .

1. strstr()
$email = 'user@example.com'; $domain = strstr($email, '@'); print $domain; // @example.com

. ereg() , preg_match() , strchr() , stristr() , strpos() , strrchr() substr() .


ң
strspn strtok