&& = the word and. So for instance in your code:
if(($w >= $width) && ($h >= $height))
That means that if the $w is greater than or equal to $width AND $h is greater than or equal to $height, then do something. Else do something else.
Just to let you know, incase you come across them, || means OR.