A PHP method excepts arrays in 3 ways, first argument,
last argument and as a reference

@param string $name The name of the PHP method

@return string|false
16237
protected function getMethod($name) 
    {
        if (isset(self::$_methods[$name])) {
            return $name;
        }

        if (isset(self::$_methods['array_'.$name])) {
            return 'array_'.$name;
        }

        $uncamel = strtolower(preg_replace("/([A-Z])/", "_$1", $name));

        if (isset(self::$_methods[$uncamel])) {
            return $uncamel;
        }

        if (isset(self::$_methods['array_'.$uncamel])) {
            return 'array_'.$uncamel;
        }

        return $name;
    }
629901
protected function findMethod($name) {
    if ($method = $this->ownBody->getOwnMethod($name)) {
      return $method;
    }
    if (NULL !== $parentClass = $this->extends->getParentClass()) {
      if ($method = $this->extends->getParentClass()->getOwnMethod($name)) {
        return $method;
      }
    }
    foreach ($this->interfacesAll->getAllInterfaces(FALSE) as $interface) {
      $method = $interface->getOwnMethod($name);
      if (FALSE !== $method) {
        return $method;
      }
    }
    return NULL;
  }
480317
public function objectTypeDefinition(string $name): ?ObjectTypeDefinitionNode
    {
        return $this->objectTypeDefinitions()
            ->first(function (ObjectTypeDefinitionNode $objectType) use ($name): bool {
                return $objectType->name->value === $name;
            });
    }
211999
public function getByName($name)
    {
        Types::assert(['string' => [$name]]);

        $name = strtolower($name);

        if ( ! array_key_exists($name, $this->headers))
        {
            return [];
        }

        return $this->headers[$name];
    }
793729
public function getArgumentByName(string $name)
    {
        $param = self::$params[$this->className][$this->method];

        if (!isset($param[$name])) {
            return null;
        }

        return $this->arguments[$param[$name]['index']];
    }
683167
protected static function getNameAndSkipFlag($name)
    {
        if ($name[0] == 'x') {
            return array(substr($name, 1), true);
        } else {
            return array(self::$method_map[$name], false);
        }
    }
242398
public function isDynamicArray($name)
    {
        $nestedTypes = $this->nestedTypes($name);

        return $nestedTypes && preg_match('/[0-9]{1,}/', $nestedTypes[count($nestedTypes) - 1]) !== 1;
    }
1298651
public static function get($name)
	{
		$args = func_get_args();
		if (!empty($args))
		{
			unset($args[0]);
		}
		if (isset(self::$list[$name]))
		{
			array_unshift($args, self::$list[$name]);
			return call_user_func_array('sprintf', $args);
		}
		else
		{
			return $name;
		}
	}
1283040
public function offsetGet($name)
    {
        deprecationWarning(
            'The ArrayAccess methods will be removed in 4.0.0.' .
            'Use getParam(), getData() and getQuery() instead.'
        );

        if (isset($this->params[$name])) {
            return $this->params[$name];
        }
        if ($name === 'url') {
            return $this->query;
        }
        if ($name === 'data') {
            return $this->data;
        }

        return null;
    }
657944
public function getParameter($name)
	{
		$chunks = explode('.', $name);

		$name = $chunks[0] .
			(isset($chunks[1]) ? '.' . $chunks[1] : '');

		if (!isset($this->parameters[$name])) {
			throw new ReferenceException(sprintf('Parameter "%s" is not defined in the container', $name));
		}

		$value = $this->parameters[$name];

		if (count($chunks) > 2) {
			$path = array_slice($chunks, 2);

			while ($key = array_shift($path)) {
				if (!array_key_exists($key, $value)) {
					throw new ReferenceException(sprintf('Lost at sub-key "%s" for parameter "%s"', $key, $name));
				}

				$value = $value[$key];
			}
		}

		return $value;
	}
1342497
public function removeElement($name)
    {
        $returnValue = false;

		foreach($this->elements as $index => $element){
			if($element->getName() == $name){
				unset($this->elements[$index]);
				$groupName = $this->getElementGroup($name);
				if(!empty($groupName)){
					if(isset($this->groups[$groupName]['elements'][$name])){
						unset($this->groups[$groupName]['elements'][$name]);
					}
				}
				$returnValue = true;
			}
		}

        return $returnValue;
    }
260839
private function getMethodCallInfo($name)
    {
        $extractedMethod = preg_match("/^(set|get|is|add|remove)([A-Z].*)/", $name, $pregMatches);
        if ($extractedMethod) {
            $method = $pregMatches[1];
            $property = lcfirst($pregMatches[2]);
        } else {
            $method = 'call';
            $property = $name;
        }

        $collectionProperties = null;
        if (in_array($method, array('add', 'remove'))) {
            $collectionProperties = $this->_collectionsItemNames['byItemName'][$property];
            $property = $collectionProperties['property'];
        }

        // check that the method is accepted by the targeted property
        if (
            empty($this->_accessProperties[$property])
            || !in_array($method, $this->_accessProperties[$property])
        ) {
            throw new \BadMethodCallException("Method $name does not exist.");
        }

        return array(
            'method' => $method,
            'property' => $property,
            'collectionProperties' => $collectionProperties
        );
    }
633532
public function getAppender($name)
    {
        if (!isset($this->_appenders[$name])) {
            return false;
        }

        $appender = $this->_appenders[$name];
        if (is_object($appender)) {
            return $appender;
        } elseif (is_string($appender)) {
            $className = strpos($appender, '\\') !== false ? $appender : 'ManaPHP\Logger\Appender\\' . ucfirst($appender);
            return $this->_appenders[$name] = $this->_di->getShared($className);
        } elseif (is_array($appender)) {
            if (isset($appender['instance'])) {
                return $appender['instance'];
            } else {
                if (isset($appender['level'])) {
                    $appender['level'] = array_search($appender['level'], self::$_levels, true);
                }
                $className = isset($appender['class']) ? $appender['class'] : $name;
                $className = strpos($className, '\\') ? $className : 'ManaPHP\Logger\Appender\\' . ucfirst($className);
                $appender['instance'] = $instance = $this->_di->getInstance($className, $appender);
                $this->_appenders[$name] = $appender;
                return $instance;
            }
        } else {
            throw new MisuseException('');
        }
    }
641808
protected function _array(array $data, $name)
    {
        $isExpanded = $this->_isExpandedLevel();

        if (0 === strpos($name, '&lt;! methods of "')) {
            $isExpanded = false;
        }
        
        ?>
        <li class="jbchild">
            <div
                class="jbelement<?php echo count((array)$data) > 0 ? ' jbexpand' : ''; ?> <?= $isExpanded ? 'jbopened' : ''; ?>"
                <?php if (count((array)$data) > 0) { ?> onClick="jbdump.toggle(this);"<?php } ?>>
                <span class="jbname"><?php echo $name; ?></span> (<span
                    class="jbtype jbtype-array">Array</span>, <?php echo count((array)$data); ?>)
            </div>
            <?php if (count((array)$data)) {
                $this->_vars($data, $isExpanded);
            } ?>
        </li>
    <?php
    }
1254741
public function get($name = null)
    {
        if (func_num_args()) {
            return $this->_get($name);
        }
        $result = [];
        foreach ($this->_values as $key => $data) {
            foreach ($data as $extra => $value) {
                if ($extra === '') {
                    $result[$key] = $this->_get($key);
                } else {
                    $result[$key][$extra] = $this->_get($key . ':' . $extra);
                }
            }
        }
        return $result;
    }
805156
public static function get(string $name)
    {
        return (isset($_GET[$name]) && $_GET[$name] != '') ? $_GET[$name] : '';
    }
1026547
public static function ReverseSortLowest ($array, $name) {
		uasort(
			$array,
			function ($current, $next) use ($name) {
				return -1 * strnatcmp(static::GetLowest($current, $name), static::GetLowest($next, $name));
			}
		);
		return $array;
	}