Jump to content

[SOLVED] Search for string


AV1611

Recommended Posts

I need an IF statement that does this:

 

If the variable $string contains this exact string: "<title>Server Offline / Not available" then {this} else {that}

 

if ($string==$match){

    this}

else{

    that}

 

I don't know how to make $match which would be a substring of a larger text string... I know  it involves regex prolly but I totally suck at regex

Link to comment
https://forums.phpfreaks.com/topic/49846-solved-search-for-string/
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.