Jump to content

form help


mike1313

Recommended Posts


$findme = ' Hello World'; //notice the white space
$hellofinder = stripos($your_string, $findme);

if ($hellofinder === false){
echo "Im not here!";
}

else{
echo "Im here!";
}

 

You could then use the str_replace function to change ' Hello World' to 'Hello World' if needed.

 

Hope that helps. ;D

Link to comment
https://forums.phpfreaks.com/topic/79547-form-help/#findComment-402944
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.