PHP - How do I use an if statement to check a variable that is in text format?

  • Thread starter Thread starter Curtis Inc
  • Start date Start date
C

Curtis Inc

Guest
I have a script I'm putting together for a little project and I can't seem to find the magic words to make this go. Here's an example of what I'm doing:


function thisFunction {
$blah = 'hello';

if ($blah == 'hello') {
//do this
}
else {
//do this
}
}

I can't seem to get that to go, I'm sure its something I'm overlooking.
 
Back
Top