private function getPoblacion($texto) { $texto = utf8_encode($texto); $prov = new Municipios(); $row = $prov->querySelect("Id", "Municipio='{$texto}' and IdPais=68", "Id limit 1"); return $row[0]['Id'] ? $row[0]['Id'] : 0; }