11-01-2009, 08:57 PM
|
#4 (permalink)
|
|
The Wanderer
Join Date: Aug 2009
Posts: 17
Thanks: 0
|
It doesn't look that bad with the parenthesis. Also I think indenting each ternary statement may improve readability also.
PHP Code:
$timestamp = (isset( $one[$i]['timestamp'] ) ? $one[$i]['timestamp'] : (isset( $two[$i]['timestamp'] ) ? $two[$i]['timestamp'] : (isset( $three[$i]['timestamp'] ) ? $three[$i]['timestamp'] : 'fail' )));
|
|
|
|