I have the code below that works fine, but I would like the information in strings to be picked up in an array, for example:
$array = array('cia','Cia','dia','Dia','hoje');
and check if one of these words is in the text variable.
Does anyone know how to do this?
$texto = $_REQUEST['text'];
if((strpos($texto,'cia')!==false || strpos($texto,'Cia')!==false || strpos($texto,'dia')!==false || strpos($texto,'prod')!==false) || (strpos($texto,'daily')!==false || strpos($texto,'Daily')!==false || strpos($texto,'prod')!==false) || strpos($texto,'hoje')!==false || strpos($texto,'produ%C3%A7%C3%A3o%20di%C3%A1ria')!==false) {
//pega a pagina que quero redirecionar
}