-4
function argumentos($argv, $campo) {
        $_ARG = array();
        foreach ($argv as $arg) {
            if (ereg('--[a-zA-Z0-9]*=.*', $arg)) {
                $str = split("=", $arg);
                $arg = '';
                $key = ereg_replace("--", '', $str[0]);
                for ($i = 1; $i < count($str); $i++) {
                    $arg .= $str[$i];
                }
                $_ARG[$key] = $arg;
            } elseif (ereg('-[a-zA-Z0-9]', $arg)) {
                $arg = ereg_replace("-", '', $arg);
                $_ARG[$arg] = 'true';
            }
        }
        return $_ARG[$campo];
    }
What is the functionality of this function?
Take a tour to understand the stackoverflow site: http://answall.com/tour
– Daniel Omine