Jump to content

IF variable contains data, DO THIS...


fri3ndly

Recommended Posts

Hi everyone

 

I have (what I think is) a quick question...

 

I have a variable called $article which contains a paragraph of text and a link at the bottom.

 

How would I be able to do the following:

 

Extract the

<a href="link.html">Link Here</a>

out of the variable and place it in to a new one?

Link to comment
https://forums.phpfreaks.com/topic/94870-if-variable-contains-data-do-this/
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.