Ad esempio usando un array

Codice PHP:
$array_parole = array('esempio1','esempio2','esempio3') ;

echo 
$array_parole[array_rand($array_parole)] ;