Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1

Thread: preg_match help

  1. #1
    New Coder
    Join Date
    Nov 2005
    Posts
    25
    Thanks
    2
    Thanked 0 Times in 0 Posts

    preg_match help

    hi everyone

    I am currently stuck in this situation.
    my case is as follows.

    i have this string:
    example
    $temp = '50 more emails, 40 more chairs, 30 more lamps';

    i use preg_match_all('{(\d+)}',$temp,$out);
    to check for the the decimal numbers

    think is tho where, I am stuck is how to retrieve those values of the preg match so i can compare with some other numeric values

    the print_r($out) crates a multidimensional array and doesn't make my task easy

    any help appreciated thanks
    Last edited by papas; 07-07-2007 at 10:39 AM.


 

Posting Permissions

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