così

$r='/=|,/';
$match=preg_split($r, "mod=advsearch,lang=it,id=1");
print_r($match)

funziona ...