How To Take Out Image Name And Format Or Extension From URL OR IMG Tag |
||||
59 views
Use preg_match OR preg_match_all to solve this problem.Here i have given simple Example for taking name and image format or extension and stored it in array:
Example1: Taking name and image format or extension from
Output:
Copy the code from here: Open Close Example 2: Taking name and image format or extension from url:
Output:
Copy the code from here:Open Close |
| « Google Set To Change Ranking Algorith | Count Character Written in textarea or textbox in javascript » |
| Posted on Wednesday, April 22nd, 2009 at 1:34 pm under PHP Script, PHP Tricks | RSS 2.0 Feed | |