+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2008
    Posts
    88
    Points
    240,760.00
    Rep Power
    190

    Default Fluidcoding unoffice post - Simple string searching

    PHP Code:
    <?php

    $string 
    "Hello World"//Our string

    $match "/\bHello\b/i"//Our compare for the word Hello
    if(preg_match($match$string) !==0); //Checks for match
    echo "Success! There's a match!"//If they match, says success!
    }
    else { 
    //No match
    echo "Sorry, no match found";
    }
    ?>
    That's sex.
    COD5 Online Statistics.


    COD5 Zombie Statistics.

  2. #2
    Join Date
    Jan 2008
    Location
    PA
    Posts
    1,164
    Points
    1,951,544.25
    Rep Power
    207

  3. #3
    Join Date
    Jan 2008
    Location
    Langley, virginia
    Posts
    58
    Points
    102,086.00
    Rep Power
    199

  4. #4
    Join Date
    May 2008
    Location
    In the interwebz
    Posts
    5,055
    Points
    1,627,546.74
    Rep Power
    218

    Default

    Lewks purdy... But IDGI =]

+ Reply to Thread

Posting Permissions

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