02-17-2009, 02:12 PM
|
#4 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,280
Thanks: 90
|
The .+? says any character but white space, and find all those characters, but in non-greedy form, so when it finds the less than symbol "<" it will stop capturing.
For the appending of the URL to the image path, you could try something like the following:
php Code:
$aImages = array('/path/to/image.jpg', '/path/to/image.gif'); $szFunction = create_function('$s', 'return "http://www.talkphp.com" . $s;'); $aImages = array_map($szFunction, $aImages); die(print_r($aImages, true));
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|