<reponame>RCC-MRU/Hacktoberfest2022new<filename>Add Code Here/PHP/armstrong.php<gh_stars>0<?php
$num = 153;
$total = 0;
$x = $num;
while ($x != 0) {
    $rem = $x % 10;
    $total = $total + $rem * $rem * $rem;
    $x = $x / 10;
}
if ($num == $total) {
    echo $num . " is an Armstrong number";
} else {
    echo $num . "is not an armstrong number";
}
