Re: Odd Code Error.
| From: | Martin Hjort Eriksen | Date: | Wed, 21 Jan 2004 23:47:09 +0000 |
| Subject: | Re: Odd Code Error. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175360@lists.php.net to get a copy of this message | ||
daniel@electroteque.org wrote:
So do you recommend using isset($name) instead of ($name) ? And what are you meaning by setting the var as in var $name ? i usually set them in classes but how about in normal scripts and functions ? Yes, if you want to examine if a variable is set or not, then you should use isset().Exactly how a variable should be set, well it could be for instance var $age:int; But you could also do both things at the same time, for instance that you PHP5 can make class type hints about the parameters to a method, but you can also not do it. /Martin