Codice PHP:
$ultimaParola=array_pop(explode("/",$url));