how to search a string
Posted: Tue Dec 16, 2008 12:25 am
Hello,
I need to search for a specific string,
like this;
$variable1 = "this is the available text. it has a url named http://www.myurl.com/val=12&id=001 and it has more more sentences as well."
what i wants to do is to search for the string "http://www.myurl.com/" and if that available in $variable1, needs to print "ok"
if( ..?.. )
{
echo "ok";
}
need help!
I need to search for a specific string,
like this;
$variable1 = "this is the available text. it has a url named http://www.myurl.com/val=12&id=001 and it has more more sentences as well."
what i wants to do is to search for the string "http://www.myurl.com/" and if that available in $variable1, needs to print "ok"
if( ..?.. )
{
echo "ok";
}
need help!