[suspicious - maybe spam] Simple question: How to declare Vars in PHP? (I know it's not necessary, but I still want to know)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I know in JavaScript, that you declare vars like so:



var = variableName;



So I'm assuming that in PHP you do it like this:



var = $variableName;



But there doesn't seem to be a single shred of documentation on PHP.net (or 
in ANY book) that covers this. All they say is that it's good practice, but 
not necessary. Then they always skip telling you how.



I always like to declare vars since it helps me keep track of the vars I 
will be using, and I just like to do things right.



So am I right about how you do it? "Yes", "No", example please??


-Jon 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux