1需要PHP 1函數或正則表達式的字符串,可以通過一個字符串,像這樣:PHP獲取圖像的所有URL的字符串從
Lorem存有胡蘿蔔,番茄http://www.gettyimages.com/images/marketing/frontdoorStill/PanoramicImagesRM/FD_image.jpg本科生科研。但繼電器直徑畢業臨牀妝。智能手機。法無。智能手機。爲了http://www.handsonuniverse.org/get_images/images/20090802.ngc6992.HOS.jpg ullamcorper mauris很多坦克Laoreet現在的主流醬。 Lorem存有悲坐阿梅德,consectetur adipiscing ELIT。弓,通過仇恨,http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg aliquam euismod aliquam ERAT volutpat。但獅子始終是AC ultrices augue luctus eleifend得力士ID。
1將得到的回報將獲得:
http://www.gettyimages.com/images/marketing/frontdoorStill/PanoramicImagesRM/FD_image.jpg http://www.handsonuniverse.org/get_images/images/20090802.ngc6992.HOS.jpg http://www.prelovac.com/vladimir/wp-content/uploads/2008/03/example.jpg
到一個數組。 1需要根據天氣的網址或不是它們所包含常規的圖像擴展名,如* .JPG,* .png和* .BMP等搶任何人都知道一個存在這樣1能避免重蹈覆轍?謝謝!
就是不夠完善,所有1'm做的是試圖展示圖片,其中1人時,可以複製粘貼鏈接,謝謝! – 2012-08-03 15:14:02
1可能會錯過一些事,但不能得到它的工作: '$內容=」 http://www.gettyimages.com/images/marketing/frontdoorStill/PanoramicImagesRM/FD_image.jpg「; preg_match_all( '/?(HTTPS?:\/\/\ S + \(:GIF | JPG | JPEG))\ S + /',$內容$匹配); 的print_r($比賽),「 演示: – 2013-04-24 08:40:44
http://codepad.viper-7.com/bgAbt6 1時,其工作刪除\ S +底。 – 2013-04-24 12:27:15