https://codetofun.com/php/number-pattern/program-9/
PHP Number Pattern 9