Jump to content

Search and then return result


rockinaway

Recommended Posts

What I want to do is search for an image area in a big chunck of text then return the img stuff for example:

 

&nbsp;<img alt="Inzamam breaks into tears at his final ODI match - Sky Sports" align="right" src="http://www.wickettowicket.com/gallery/albums/userpics/10001/pakvsziminzlastmatch%23.jpg" /><br />
<br />
The match for Pakistan was one of remembrance and pride. Losing their first two

 

If is entered that.. I want to get only:

 

<img alt="Inzamam breaks into tears at his final ODI match - Sky Sports" align="right" src="http://www.wickettowicket.com/gallery/albums/userpics/10001/pakvsziminzlastmatch%23.jpg" />

 

So that it only returns the image.. any help?

Link to comment
https://forums.phpfreaks.com/topic/44515-search-and-then-return-result/
Share on other sites

Right I figured I could use strstr( IMG ADDRESS, strstr( the address bit, $main text));

 

How can I get a universal address, so like it isn't specific,. it searches for any address, like you can use % in MySQL queries.. what about in this.. if I want the address what would t be? http://% ?

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.