View Single Post
Old 10-01-2006, 08:05 PM   #3 (permalink)
jwalsh
Contributing Member
 
jwalsh's Avatar
 
Join Date: 03-22-04
Location: Cleveland, OH
Posts: 388
iTrader: 0 / 0%
jwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to alljwalsh is a name known to all
$x = "3";
$y = 3;

$x == $y will pass
$x === $y will fail because they are different types.

Now, if only PHP supported strict typing.
__________________
Cleveland Web Application Development by Designing Interactive
jwalsh is offline   Reply With Quote