To add to the other answers, when you use the assignment operator (=) instead of the comparison operators (== or ===), the assignment is passed from right to left.
So the following is true:
"camera" == $_POST['electronics'] = "camera"
Which in your case is true enough to satisfy the if
It's the same behaviour that lets you make multiple assignments with one value.
eg:
$foo = $bar = 10;
$foo
and $bar
are both assigned 10.