View Single Post
Old 11-01-2009, 08:57 PM   #4 (permalink)
Rhinos
The Wanderer
 
Join Date: Aug 2009
Posts: 17
Thanks: 0
Rhinos is on a distinguished road
Default

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'
             
))); 
Rhinos is offline  
Reply With Quote