People have written extensively about how much PHP sucks. I tend to agree, but it’s still possible to hide away and make it a livable experience to code with.
And then once in a while I come across stuff like this :
imagepng
bool imagepng ( resource $image [, string $filename [, int $quality [, int $filters ]]] ) |
Scroll down to “quality”
Compression level: from 0 (no compression) to 9.
imagejpeg
bool imagejpeg ( resource $image [, string $filename [, int $quality ]] ) |
Scroll down to “quality”
quality is optional, and ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file). The default is the default IJG quality value (about 75).
Aw man. C’mon, one goes 0-9 (best being 0), and the other is 0-100 (best being 100)?