Steve-vfp9user
Programmer
Hello
I am new to php and trying find out how I can create an If/Then statement when a known word is encountered and contained in the string. Research has found these but these are = to:
Thank you
Steve
I am new to php and trying find out how I can create an If/Then statement when a known word is encountered and contained in the string. Research has found these but these are = to:
Code:
True statement
$number_three = 3;
if ( $number_three == 3 ) {
echo "The if statement evaluated to true";
} else {
echo "The if statement evaluated to false";
}
False statement
$number_three = 421;
if ( $number_three == 3 ) {
echo "The if statement evaluated to true";
} else {
echo "The if statement evaluated to false";
}
Thank you
Steve