note 50634 rejected from language.operators.logical by nlopess
| From: | nlopess@php.net | Date: | Sun, 06 Mar 2005 19:35:20 +0000 |
| Subject: | note 50634 rejected from language.operators.logical by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-86009@lists.php.net to get a copy of this message | ||
Note Submitter: myone at inbox dot lv
----
How can I assign a value for variable if it's not defined at the beginning?
<?
if ( !$variable ) { $variable=0; } // this dosen't work
?>