I am simply trying to do a if-elseif-else ternary operator line and the results are completely wrong!!
$html .= ($i % 2 == 0 && $i + 1 < sizeof($sortByArray) - 1) ? (@sizeof($headerMenuArray[$section]) / 4) : ($i % 2 == 0) ? '*' : '';
I constantly get $html getting '*' for every single iteration of $i!
What I want is very very simple:
if $i % 2 == 0 and $i is less than the size of $sortByArray - 1 then print the calcuated first equation, else if $i % 2 == 0 only then print *, else, print nothing at all!
I have gone to several websites looking up complex ternary operators, to no avail!
Please help, this is most annoying and utterly silly that I can't get this!
Thanx
Phil