Regular expression
Return list
if(isset( $string) and isset($query) and $string"" and $query""){
if(isset($case)){
$func = "ereg";
}
else{
$func = "eregi";
}
switch($where){
case "^":
$query = "^ " . $query;
break;
case "$":
$query .= "$";
break;
}
eval("$found = $func( "$query","$string");");
if($found){
echo "Found!";
}
else{
echo "Not found!" ;
}
}
?>
http://www.bkjia.com/PHPjc/531936.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/531936.htmlTechArticleRegular expression returns list if(isset($string) and isset($query) and $string "" and $query ""){ if(isset($case)){ $func = "ereg"; } else{ $func = "eregi"; } switch($where){ case "^...