Php programs

how can one create a php program that tells someone is old or young if the years are entered via a keyboard?

use readline to get input:

http://php.net/manual/en/function.readline.php

then some condition checking, it should be easy.