use substr()
if (substr(0,3,$compare_product == "***"))
{
print yer stuff.
}
chad wrote:
I'm trying to do the following and it's not working.
if ($compare_product == '%'){
echo ("<p class=\"footnote\">UDL packages trade name product</p>\n");
}
So basically i'm saying that if $compare_product begins with *** then print the message.
Any ideas?
Thanks