Jump to content

if text exists dont show it


mysterbx

Recommended Posts

Hello, is it possible to not show the text if it already exists in the petern?

 

Example:

 

$text= "Here is your download link:
http://example.com/download1.exe
http://example.com/download2.exe
Or you can use this one (the same)
http://example.com/download1.exe
http://example.com/download2.exe";

 

Output(response from a simple script)

http://example.com/download1.exe
http://example.com/download2.exe
http://example.com/download1.exe
http://example.com/download2.exe

 

Response from the script I am looking for:

http://example.com/download1.exe
http://example.com/download2.exe

 

No same links shouldnt appear in the output or "echo"...

 

it should be possible?

Link to comment
https://forums.phpfreaks.com/topic/88081-if-text-exists-dont-show-it/
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.