tags:

views:

59

answers:

3
unset $arr[$key];

Shouldn't it be :

unset($query[$key]);
+1  A: 

If I understand you correctly then it would be called a language construct, such as echo.

http://stackoverflow.com/questions/1180184/what-is-the-difference-between-a-language-construct-and-a-built-in-function-in

meder
+3  A: 

from the php manual:

echo is not actually a function (it is a language construct)

same with unset.

Joel L
+1  A: 

isset and unset are actually implemented as PHP unary operators also, so they can be used without parens.

Sean A.O. Harney