A
Anonymous
Guest
I am trying to do some simple comparison and can't figure out what I am doing wrong.
Here's the first thing I tried.
$found = eregi("United Parcel Service",$title);
if ( $found === true ) {
$special_shipping="true";
}
$title contains "United Parcel Service (1 x 1.5lbs) (Ground):"
Why isn't $found true?
I also tried
$found = strpos($title,"United Parcel Service")
I couldn't get this to return true either.
I am outputting $title so I know for a fact that it contains the right info.
Thanks for any help
Here's the first thing I tried.
$found = eregi("United Parcel Service",$title);
if ( $found === true ) {
$special_shipping="true";
}
$title contains "United Parcel Service (1 x 1.5lbs) (Ground):"
Why isn't $found true?
I also tried
$found = strpos($title,"United Parcel Service")
I couldn't get this to return true either.
I am outputting $title so I know for a fact that it contains the right info.
Thanks for any help