php $contenttograbimagefrom
|
|
|
Monday, 30 January 2012 17:11 |
//Extracting Image With PHP
$contenttograbimagefrom = $youroriginalhtmlwithimage;
$firstImage = "";
$output = preg_match_all('//i', $contenttograbimagefrom, $ContentImages);
$firstImage = $ContentImages[1] [0]; // To grab the first image
echo $firstImage;
credits: 4DLink WebLists and web4link.com Read more: |
|
|
|
|