do you need $found as a boolean value or as the variable $mytest?
hi guys,
i need some help here
this one has me stumped
i've tried everyway know to man in my brain to get what ereg matches assigned to $foundPHP Code:
$mywords = "^one|two|three|four|five|six$";
$mytest = "three";
if (ereg($mywords , $mytest)) {
$found =
}
echo "$found";
the only thing i can get is a value of 1 meaning true
i need the match to assign (three) to found
any ideas here?
tx
RD
do you need $found as a boolean value or as the variable $mytest?