Get maxWidth and maxHeight of a two dimensional array..? Note: 1st dimension = Y (height) 2nd dimension = X (width)
php.net