ciao a tutti,ho fatto questo script:

<?php
function estrazione($s)
{
global $stringa;
$separatore = strpos("$s"," ") ;
$sub = substr("$s","$separatore" +1);
return($sub);
}
?>
<html>
<head><title>funzione moltiplicazione</title>
</head>
<body>
<?php

$stringa ="mario PalloMarko pallino";
$cognomi = estrazione($stringa);
print ("$cognomi");




?>
</body>
</html>



questo codice mi permette di estrarre dalla $stringa ,il cognome "Pallo".
ora come posso sistemare questa funzione che ho impostato in testa al file per estrarre
anche l'altro cognome "pallino".