Codice PHP:

    
if (strpos($evento_cale $nome_evento) and $_POST[$nome_evento]=='cancella'){ //questo funziona

         
$dato_evento_caleexplode('%',$evento_cale);
               foreach(
$dato_evento_cale as $ky => $valorey){
                       if (
$valorey!=''){
                           if (
strpos($valorey$nome_evento)) echo $valorey."
"
;//questo non va
                       
}
                }
     }