According to the PHP documentation on isset(), the function returns true if the variable has a defined value. This would be equivalent to the defined function of Perl:
$comment= param('comment') if defined param('comment');
I think the $_POST hash in PHP is populated by HTTP POST parameters - you would have to check that too.
In reply to Re: Does Perl have if(isset?
by Corion
in thread Does Perl have if(isset?
by beanscake
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |