- What will the following code block output?
for($i = 0; $i < 10; $i++){
echo $i;
if($i > 8){
echo '!';
} else {
echo '';
}
As a PHP developer on Ubuntu, we may need to re setup our development environment sometimes. I did it already a few times, so decided to write down the steps for a typical php development environment on ubuntu. My Ubuntu version is 16.04.