In your title, you asked if it was safe to use a variable without making it null first. However, in your question body, you ask whether it is ok to assign values to variables without making them null first.
If you try to assign values to a variable without making them null, it is perfectly fine.
$x = 1;
$y = 2;
$z = $x + $y; // 3
If you wanted to use variables without making them null, PHP will consider them null by default.
echo(is_null($a) ? "true" : "false"); // true
echo($a === null ? "true" : "false"); // true
But you will get a E_NOTICE if you try to use them without assigning it null.
$a = 1;
$c = $a + $b; // 1
PHP Notice: Undefined variable: b in ...
While this isn't a problem on PHP 5, you should be concerned if you are on PHP4. This could be security concern
, as the register_globals directive is enabled by default in PHP 4.
The register_globals directive essentially allows anyone to set variables via requests. Elements in the $_REQUEST array are automatically registered as variables, if you do not set them to null yourself.