I am trying to convert the following code into a Ternary Operator, but it is not working and I am unsure why. I think my problem is that I do not know how to express the
$top = ($i == 0) ? '' : (($i % 5 == 0) ? '' : ''); you need to add parenthesis' around the entire else block 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
you need to add parenthesis' around the entire else block