I am having an issue whan calling unset on an array’s key, here is the non-working code
$updatedcontact = $_POST;
unset($updatedcontact['_id'];
I know that the _id key exists (even if it would not my script should still work I guess) because when I comment the unset line and var_dump the array I get this:
array (size=9)
'_id' => string '50e1aff66d2a0fcf48000000' (length=24)
When the unset line is not commented I simply get a blank page
I read the php manual and searched but it damn looks like I do it right to my eyes (and it works in a test script I wrote), hope someone will find my begginer’s mistake.
Thanks
Syntax Error, Closing ) Missing
Should be