...

View Full Version : preg_match help



papas
07-07-2007, 11:36 AM
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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum