Re: [PHP] Variable Fun

2003-01-30 Thread Jason Wong
On Friday 31 January 2003 05:55, James E Hicks III wrote: > This code: > $var1 = "02061030012452"; > $var2 = "02061030012451"; > $test1 = (string) $var1 > $test2 = (string) $var2; > echo gettype($test2)."---".gettype($test1).""; > echo $test2."---".$test1.""; > if ( $test2 != $test1){ >

[PHP] Variable Fun

2003-01-30 Thread James E Hicks III
This code: "; echo $test2."---".$test1.""; if ( $test2 != $test1){ echo ("The variables are not equal."); } ?> Produces the following output (Notice that it doesn't say vars are not equal); string---string 02061030012451-