Codice PHP:
<?php
function dividi($db){
    
$b=explode('&',$db);
    
$new=array();
    for(
$i=0;$i<count($b);$i++){
        
$c=explode('=',$b[$i]);
            
$new[$c[0]]=$c[1];
    }
    return 
$new;
}

print_r(dividi('modname=content&op=show&pg=1'));
?>
ciao