Posted by cbmeeks on 01/18/07 16:45
Arg!
In this code:
$fn = 'demo-640x480.jpg';
$pattern = '/\d+/';
$matches = preg_split($pattern, $fn, -1, PREG_SPLIT_NO_EMPTY);
print_r($matches);
give me:
Array ( [0] => demo- [1] => x [2] => .jpg )
why do I not get 640 480??
http://www.codershangout.com
[Back to original message]
|