Results 1 to 2 of 2

Thread: ereg help plz(tx)

  1. #1
    Join Date
    Aug 2005
    Posts
    5

    ereg help plz(tx)

    hi guys,
    i need some help here
    this one has me stumped

    PHP Code:
    $mywords "^one|two|three|four|five|six$";
    $mytest "three";

    if (
    ereg($mywords $mytest)) {
    $found 
    }

    echo 
    "$found"
    i've tried everyway know to man in my brain to get what ereg matches assigned to $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

  2. #2
    Join Date
    Jul 2005
    Posts
    26
    do you need $found as a boolean value or as the variable $mytest?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •