更新时间:2023-01-19 19:13:19
我不知道为什么在那使用模数。
http://php.net/manual/zh/language.operators .arithmetic.php
I can't figure out why are you using modulus there. http://php.net/manual/en/language.operators.arithmetic.php
我认为那是您不想要的东西。
我通常这样做的方式是:
I think that is something you didn't want. The way I usualy do this is:
if( $ad_counter >= 3 ) {
$ad_counter = 0;
echo '<h2 style="color:red;">Advertisement or custom content here</h2>';
}
您可以删除第12行:)
And you can remove line 12 :)