5 ms·
One of the symptoms of the hodge podge is things that should be in the interpreter when they're actually in the parser. For example: isset($foo, 2) Return
by Scriptor 15y ago
One of the symptoms of the hodge podge is things that should be in the interpreter when they're actually in the parser. For example:
isset($foo, 2)
Returns a parse error, even though isset looks like a function call and you're just passing it an extra parameter.
- pak 15y agoNot unique to PHP in the slightest. In C sizeof(int, 2) will return a parse error, because sizeof is an unary operator despite looking like a function (the parentheses are mandatory when using it with a type name). In PHP, isset is implemented as a "language construct", essentially like another operator.