Not tested:
<?
$tocrop = ?1234&member=1;
# Get rid of ?
$tocrop = substr($tocrop, 1); # =1234&member=1
# Arrayize
$tocrop = explode("&", $tocrop); # =array("1234", "member=1")
# Parse the array
for ($i=0; $i<count($tocrop); $i++) {
$cropby = strpos($tocrop[$i], "=");
if ($cropby){$cropped[] = substr($tocrop[$i], $cropby+1);}
else {$cropped[] = $tocrop[$i];}
}
# Now: $cropped = array("1234", "1")
?>