<?php
$palavras = array('Linguagem', 'Língua', 'Lang');
function gerarPalavra($arr){
return $arr[$aleatorio];
}
for ($i = 0; $i < 10; $i++){
echo gerarPalavra($palavras);
echo ' | ';
}
PD9waHAKCiRwYWxhdnJhcyA9IGFycmF5KCdMaW5ndWFnZW0nLCAnTMOtbmd1YScsICdMYW5nJyk7CgpmdW5jdGlvbiBnZXJhclBhbGF2cmEoJGFycil7CiAgICAkYWxlYXRvcmlvID0gcmFuZCgwLCBjb3VudCgkYXJyKSAtIDEpOwogICAgcmV0dXJuICRhcnJbJGFsZWF0b3Jpb107Cn0KCiBmb3IgKCRpID0gMDsgJGkgPCAxMDsgJGkrKyl7CiAgICBlY2hvIGdlcmFyUGFsYXZyYSgkcGFsYXZyYXMpOwogICAgZWNobyAnIHwgJzsKfQ==