|
PHP5中文手册
strstr(PHP 4, PHP 5) strstr — Find first occurrence of a string 说明
string strstr
( string $haystack
, string $needle
, bool $before_needle
)
Returns part of haystack string from the first occurrence of needle to the end of haystack .
参数
返回值Returns the portion of string, or FALSE if needle is not found. 更新日志
范例
Example#1 strstr() example
<?php |