Uninitialized variable 'x'
This is the most common error made in PHP. It can occur in few different scenarios. Case 1:
// ... $y = sqrt($x); // Uninitialized variable 'x' //...
Variable $x is being used without having been assigned any value first. X for example can be typo (you had $areaOfSquare, and you type by mistake $areaofSquare). The other cause of this error can be not initializing variable through all execution paths. For example:
//...
switch ($z) {
case 14:
$x = 6;
break;
case 7:
$x = 4;
break;
}
$y = sqrt($x); // Uninitialized variable 'x'
//...
Here variable $x has assigned value only if $z is 14 or 7, if for example $z is 4 $x doesn't get any value, and Codenizer reports it as being uninitialized.

