This question already has an answer here:
- Why is true greater than 3 in PHP 2 answers
I am creating a cropping algorithm and at some point checking if values exists through
if($x && $y){ //then crop }
Which checks if the initial coordinates of the cropping area are specified. However, this fails at the boundaries, because if any of the values are zero (cropping from the border), then php evaluates it as false.
How can I overcome that?
</div>