API17

Difference between revisions of "JArrayHelper::getValue"

From Joomla! Documentation

(Updated to r1448:247ba8d88526)
m (JoomlaWikiBot moved page JArrayHelper::getValue/11.1 to API17:JArrayHelper::getValue without leaving a redirect: Robot: Moved page)
(No difference)

Revision as of 14:42, 10 May 2013

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JArrayHelper::getValue[edit]

Description[edit]

Utility function to return a value from a named array or a specified default.

Template:Description:JArrayHelper::getValue [Edit Descripton]

public static function getValue (
        &$array
        $name
        $default=null
        $type=''
)
Parameter Type Default Description
&$array array $array A named array
$name string The key to search for
$default mixed null The default value to give if no key found
$type string Return type for the variable (INT, FLOAT, STRING, WORD, BOOLEAN, ARRAY)

See also[edit]

Template:SeeAlso:JArrayHelper::getValue [Edit See Also]

User contributed notes[edit]

<CodeExamplesForm />