3 ms·
I do not mind the inconvenience of typing in quotes. I just do not like that function are not treated as first class citizens in this respect. There may be wa
by eru 19y ago
I do not mind the inconvenience of typing in quotes. I just do not like that function are not treated as first class citizens in this respect. There may be ways around this in newer versions of PHP, though.
By the way - can someone please try something like the following:
$width = getimagesize($filename) [0];
The last time I checked, PHP threw a _Parser_Error_ for indexing an array that you just got from a function. Not even arrays feel like first class citizens.
(Pardon me, if this ward has been eliminated in the mean time. I just vividly remember losing some time hunting for a bug because of this 'feature'.)
- aston 19y agoYeah, the [] operator works on a variable name, not on the variable itself. Kind of silly.