<?php
function smile() { return "Smile!"; }
for($i = 3; $i > 0; $i--) {
    for($j = 0; $j < $i; $j++){
        print smile();
    }
 echo '\n';
}