$pos = substr($num, 0, strpos($num, "/")) - 1; $tot = substr($num, strpos($num, "/")+1, strlen($num));