PHP variable

[email protected] ("F.Anneveld")
Newsgroups php.doc.nl
Message-ID <[email protected]>
Hello,

When I use the following code my browser comes with the following error :
--------------------------------------------------------------------
PHP code:

<?php
if (!$test) echo "test does not exist";
?>
--------------------------------------------------------------------
Browser error:

Notice: Undefined variable: test in d:\www\trash.php on line 3
test does not exist

--------------------------------------------------------------------
But in PHP you don't have to declare a variable
or do I have to ajust some setting in the PHP.ini ????


Thank you,

Frank
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.