![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: [Announce] PHPLint 0.3 - PHP source parser and validator
From: Umberto Salsi <salsi@icosaedro.italia>
Date: Tue Oct 18 2005 - 02:30:14 CEST
Janwillem Borleffs <jw@jwscripts.com> wrote:
> You might want to add variable variables and functions support:
The variable-variables feature is already into my to-do list, but I think
A final note about the usage of the "@" operator: if $_REQUEST['NAME']
<?
gives:
not set
Moreover, $_REQUEST['NAME'] might be either a string:
http://your.site/your-script.php?NAME=xxx
or an array:
http://your.site/your-script.php?NAME[]=xxx&NAME[]=yyy
If you are expecting a string, you should write something like:
$x = isset( $_REQUEST['NAME'] )? (string) $_REQUEST['NAME'] : "";
or, if you are expecting an array,
$x = isset( $_REQUEST['NAME'] && is_array( $_REQUEST['NAME'] ) )?
Regards,
|