Name

reg_search

Synopsis

$partial_string = reg_search($expression, $string);
$partial_string = reg_search($expression, $string, $array);

Identical to ereg except that the portion of string after the first match is returned. If there is no match, the function returns an empty string. This function is included only for backwards compatibility with older versions of PHP.

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.