Question: Which of the following is not valid PHP code?
A
B
C
D
E
$_10
B
${“MyVar”}
C
&$something
D
$10_somethings
E
$aVaR
Note: PHP variables always start with a dollar sign and are a sequence of characters and numbers within the Latin alphabet, plus the underscore character. ${"MyVar"} is a valid variable name that simply uses a slightly less common naming convention, while &$something is a reference to the $something variable. Variables, however cannot start with numbers, making $10_somethings invalid and Answer D correct.