i am facing problem in my if condition if PHP code.i am using the && operator to validate both the conditions for image height and width but it only checks the first condition.
list($width, $height) = getimagesize('abc.jpg');
if($width < 400 && $height < 200){
//do some thing }
but it only validate the image width.
any hint??