A direct translation would be as follows:
switch(in_array($argv[$i], array('-V', '--version'))){
case true:
$displayVersion = TRUE; break;
}
However you could also do something like this, which is clearer.
switch($argv[$i]){
case '-V':
case '--version':
$displayVersion = TRUE; break;
}
Depending on what you want to do, a one liner may be more clear, although it differs from the above code in that the variable will be set to false if in_array($argv[$i], array('-V', '--version'))
is false. Given your variable name I doubt this is a bad thing.
$displayVersion = in_array($argv[$i], array('-V', '--version'));