unset $arr[$key];
Shouldn't it be :
unset($query[$key]);
If I understand you correctly then it would be called a language construct, such as echo
.
What is the difference between a language construct and a "built-in" function in PHP?
isset and unset are actually implemented as PHP unary operators also, so they can be used without parens.