I'm new to php, but wasn't able to find a straight answer online, so decided to ask Stack Overflow.
I have a variable, and I want to make a statement similar to the following:
if ($var has a question mark at end)
{
$var = ($var - question mark)
}
Thanks in advance!
--EDIT--
I ended up using the following:
if (substr($var, -1) == "?")
{
$var = rtrim($input, "?");
}
Thanks again for the quick feedback. God I love this site.
--END EDIT--