How would I go about converting this if statement:
for($i = 1; $i < $argc; $i++)
{
...
if(in_array($argv[$i], array('-V', '--version')))
{
$displayVersion = TRUE;
}
...
}
Into a switch case without needing to write two switch statements?
1 Answer