Jump to content

extracting url in array


prakash

Recommended Posts

I am working on some projects and need some on php. and this is best place for me ever.

 

I need to extract range-url values in an array. The range-url may contains multiple range.

 

Range-Url For eg.

http://www.mysite.com/images/img[01-15].jpg

http://www.mysite.com/images/img[01-15][20-23].jpg

 

Extracted array value for http://www.mysite.com/images/img[01-15].jpg

http://www.mysite.com/images/img01.jpg

http://www.mysite.com/images/img02.jpg

http://www.mysite.com/images/img03.jpg

..........................................

http://www.mysite.com/images/img015.jpg

 

or for http://www.mysite.com/images/img[01-15][20-23].jpg

http://www.mysite.com/images/img0120.jpg

http://www.mysite.com/images/img0221.jpg

http://www.mysite.com/images/img0322.jpg

http://www.mysite.com/images/img0423.jpg

http://www.mysite.com/images/img0520.jpg

.........................

 

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/54914-extracting-url-in-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.