Get field value as scalar by index
@param int $i
@param mixed $default
@return \PerrysLambda\ScalarProperty
548377
public function getScalarAt($i, $default=null)
    {
        $name = $this->getNameAt($i);
        if(!is_null($name))
        {
            return $this->getScalar($name, $default);
        }
        return new ScalarProperty($default);
    }
853209
public function &get_column($i)
    {
        if (!isset($this->_columns[$i])) {
            $this->_columns[$i] = array(
                "x"          => 0,
                "min-width"  => 0,
                "max-width"  => 0,
                "used-width" => null,
                "absolute"   => 0,
                "percent"    => 0,
                "auto"       => true,
            );
        }

        return $this->_columns[$i];
    }
1131799
private function getDefaultValue($key, $default = null)
    {
        $value = null === $default && \array_key_exists($key, $this->defaults)
            ? $this->defaults[$key]
            : $default;

        return $this->getByManager($key, $value, $default);
    }
198489
public function get($property, $default = null)
    {
        $properties = $this->getValue('properties', []);
        if (array_key_exists($property, $properties)) {
            $value = $properties[$property];
            if (is_array($value)) {
                $value = reset($value);
            }

            return $value;
        }

        return $default;
    }
384386
public function get($index, $default = null)
	{
		if ($this->has($index)) {
			return $this->offsetGet($index);
		} elseif (! (func_num_args() > 1)) {
			throw new \RuntimeException('No such offset.');
		}

		return $default;
	}
86390
public static function getMemoryLimit(int $default = 128): int
    {
        $limit = ini_get('memory_limit');

        if (-1 === $limit) {
            return $default * self::SHORTHAND[self::MEGABYTE]; //default
        }

        if (is_numeric($limit)) {
            return (int)$limit;
        }

        return (int)substr($limit, 0, -1) * self::SHORTHAND[strtolower(substr($limit, -1))];
    }
1171595
public function get($props, $default = null)
    {
        return \igorw\get_in($this->conf->getConfig(), $this->arrayize($props), $default);
    }
727963
public function getValue($name, $default = 0)
    {
        $current = $this->read($name, $default);

        return $this->update($name, $current + 1);
    }
1159967
public static function getPhpValue($val, $default = null, ParserInterface $parser = null)
    {
        if ($val instanceof DOMElement) {
            $parser = $parser ?: new static;

            return $parser->parseDomElement($val);
        }

        if (0 === strlen($val)) {
            return $default;
        }

        if (0 === strpos($val, '0x') && preg_match('#^[[:xdigit:]]+$#', substr($val, 2))) {
            return hexdec($val);
        }

        if (is_numeric($val)) {
            return ctype_digit($val) ? intval($val) : floatval($val);
        }

        if (in_array($lval = strtolower($val), ['true', 'false'])) {
            return $lval === 'true' ? true : false;
        }

        return $val;
    }
1050953
public function get($key, $default = null) {
        if (!is_string($key)) throw new IllegalTypeException('Illegal type of parameter $key: '.gettype($key));
        // TODO: a numerically indexed property array will have integer keys

        $notFound = false;
        $value = $this->getProperty($key, $notFound);

        if ($notFound) {
            if (func_num_args() == 1) throw new RuntimeException('No configuration found for key "'.$key.'"');
            return $default;
        }
        return $value;
    }
252263
public function get($index, $default = null)
    {
        if (isset($this->data[$index])) {
            return $this->data[$index];
        }

        return $default;
    }
924859
@Override
    public double getWithDefault(int idx, double defaultVal) {
		int i = Arrays.binarySearch(indices, 0, used, idx);
		if (i < 0) {
			return defaultVal;
		}
		return values[i];
	}
75667
public function getColumnProperty($column, $property, $default = null)
    {
        if (!isset($this->columns[$column])) {
            return $default;
        }
        if (!isset($this->columns[$column][$property])) {
            return $default;
        }
        return $this->columns[$column][$property];
    }
475873
function &get($key, $default = null)
    {
        if (!$this->has($key))
            return $default;

        $p = &$this->__attainInternalPointer();
        return $p[$key];
    }
485428
public static function get($index = null, $default = null)
	{
		return (func_num_args() === 0) ? $_GET : \Arr::get($_GET, $index, $default);
	}
1126024
private function askForPropertyName(InputInterface $input, OutputInterface $output, $default = null)
    {
        return $this->questionHelper->ask(
            $input,
            $output,
            $this->getQuestion("\n" . 'Property name in Elasticsearch', $default, [$this, 'validateFieldName'])
        );
    }
266361
public function value($field, $default = null)
    {
        $r = $this->first([$field]);
        return isset($r[$field]) ? $r[$field] : $default;
    }