Return to 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; func("$query","$string");");
if($found){
echo "Found! ";
}
else{
echo "Not found! ";
}
}
?>