Okay, i want to do something on every iteration of my loop(except every 4th), and i want to do something else on every 4th loop.
But instead, it will echo 'stuff here' and thats all.. any ideas?PHP Code:for ($i = 0; $i < strlen($stuff);$i++){
switch(bcmod($i,4)){
case '0':
echo 'stuff here';
return;
default:
echo ord(substr($stuff,$i,1)).'.';
return;
}
}





Reply With Quote