Code: Select all
$test = "hello.php?h=ttt";
if (?h= is in $test)
echo "yes";
else
echo "no"cheers, chris.
[Edit: Added PHP tags for eyecandy. --JAM]
Moderator: General Moderators
Code: Select all
$test = "hello.php?h=ttt";
if (?h= is in $test)
echo "yes";
else
echo "no"Code: Select all
$test = "hello.php?h=ttt";
if (strstr($test,"?h=")) { // evals to TRUE
echo "yes";
} else {
echo "no";
}