In PHP, the remainder can be used easily. The best use of remainder and remainder in PHP is php $ aryarray (name, egineer, sonny, tonny, pingk, apple, phone, clone, pink, colle ); foreach ($ aryas $ key $ value) {$ key $ PHP's best use of remainder and php's best use of remainder
<?php $ary=array("name","egineer","sonny","tonny","pingk","apple","phone","clone","pink","colle");foreach($ary as $key=>$value){$key=$key+1;if($key%2==1){echo '
';} ?> <?php echo $key.":". $value;?> <?php if($key%2==0){echo '';}}; ?>
Second_one
<?php $ary=array("name","egineer","sonny","tonny","pingk","apple","phone","clone","pink","colle");foreach($ary as $key=>$value){$key=$key;if($key%3==0){echo '
';} ?> span"><?php echo $key.":". $value;?> <?php if($key%3==2){echo '';}}; ?>
You can view and analyze the results after running it ~
Export php $ ary = array ("name", "egineer", "sonny", "tonny", "pingk", "apple", "phone", "clone ", "pink", "colle"); foreach ($ ary as $ key = $ value) {$ key = $...