I'm using the following code:
foreach ($lista_grupos as $key => $value) {
if(strpos($lista_grupos[$key],'Tecnologia_da_Informacao')===true){
$admin = true;
}else{
$admin = false;
}
}
But it always returns false, can not find the string I want. What am I doing wrong? Follow array:
(array =>
[21] => CN=Tecnologia_da_Informacao,OU=Tecnologia_da_Informacao,OU=03-Operadora,DC=asdt,DC=com,DC=br
[22] => CN=asdasd,OU=02-Grupos,DC=uniiaca,DC=com,DC=br
[23] => CN=asdasd,OU=02-Grupos,DC=jçasdia,DC=com,DC=br
)