<?php

for($i=1; $i<=50; $i++){

if($i%2==0){ print "a <br />";  }
else { print "b <br />"; }


}

?>
Alternatifler üretilebilir...