<?php
echo "Informe a idade para verificar a faixa etária: \n";
fscanf(STDIN, "%d", $idade);
if ($idade < 12) {
	$faixaEtaria = "Criança";
} elseif ($idade >= 12 & $idade <= 18) {
	$faixaEtaria = "Adolescente";
} else {
	$faixaEtaria = "Adulto";
}
echo "A idade fornecida classifica essa pessoa como: $faixaEtaria.\n";
?>

Embed on website

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