PHP Tutorial

PHP Home

PHP Functions

PHP String Functions

PHP Interview Programs

PHP Common ProgramsPHP Array ProgramsPHP Converter ProgramsPHP Star Patterns ProgramPHP Number Patterns ProgramPHP Alphabet Patterns Program

PHP Reference

ASCII Table

PHP Number Pattern 60

Last Updated:

PHP Number Pattern 60

Try to print the following number pattern using PHP.

Print This Output
86523
8652
865
86
8

Source Code

PHP Compiler
<?php $num = 86523; while($num != 0) { echo $num."<br>"; $num = $num / 10; $num = floor($num); } ?>

Share this Page

Meet the Author