On Thursday 30 January 2003 02:39, David Freeman wrote:
> -----8<-----
> $a = "0";
> $b = "Friday August 22";
> -----8<-----
>
> and resulted in 'no match'.

Or try
  $a = 0;
  $c = (string) $a; // Now $c == "0"
or
  if (( (string) $a == (string) $b)) {
     ...

The manual could be your friend, too:
http://www.php.net/manual/en/language.types.type-juggling.php

johannes

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to