if statement with two actions on a single line

Posted by Andy on Stack Overflow See other posts from Stack Overflow or by Andy
Published on 2010-06-17T09:36:10Z Indexed on 2010/06/17 9:43 UTC
Read the original article Hit count: 120

Filed under:

Im trying to reset $i to 0 and print the word margin...is this doable the way im trying to pull it off?

 class="customGal'.($i == '2' ? $i = '0' && 'margin' : NULL).'"

Thanks in advance.

© Stack Overflow or respective owner

Related posts about php