codice:
$prova = "2::10";
$variabili = explode("::", $prova);
$variabile1 = $variabili[0]; //output 2
$variabile2 = $variabili[1]; //output 10