<?php $line = ''; $number = 5; for ($i = 1; $i <= $number; $i++) { $line = str_repeat('*', $i) . $line . '0'; echo $line . PHP_EOL; }
You have javascript disabled. You will not be able to edit any code.