<?php
$numero=45;
if ($numero % 10 == 4) {
    print("El numero termina en 4");
}else{
    print("El numero no termina en 4");
}

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: