[PHP-DEV] Bug #540: argv and argc problems From: ben.lavender <email protected>
Date: 07/11/98

From: ben.lavender <email protected>
Operating system: NT4 SP3
PHP version: 3.0 Final Release
PHP Bug Type: Misbehaving function
Bug description:
How can I test argc in an if statement?

if ( argv > 0)
{
    echo ("there are args");
}

this always fails.

[3] Once I have run
Calling hello.php?a=world&b=tree

parse_str($argv[0]);
if ( ! (isset($a) && isset($b)) )
{
    echo ("failure");
}