0
I have the code below works well, but I would like the information in strings to be taken in an array for example:
$array = array('cia','Cia','dia','Dia','hoje');
and check if one of the above words has in the text variable.
Someone knows how to do it ?
$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
}
Maybe it’s a duplicate of: Doubt in the comparison of variables
– rray