PhpExtension

Extends \Twig_Extension

Class PhpExtension extends Twig template functions

package

App\Twig

Methods

PHP native function - key($var)

arrayKey(array $var) : mixed

Arguments

$var

array

Response

mixed

PHP native function - array_shift($var)

arrayValue(array $var) : mixed

Arguments

$var

array

Response

mixed

PHP native function - DateTime ( $var, DateTimeZone ( $timezone ) )

dateFormat(string $var) : string

Arguments

$var

string

Response

string

Gets the array of Twig filters being registered

getFilters() : array

Response

array

Gets Name of Twig Extension being registered

getName() : string

Response

string

PHP native function - is_array($var)

isArray(string|integer|array|object $var) : boolean

Arguments

$var

string|integer|array|object

Response

boolean

PHP native function - is_object($var)

isObject(string|integer|array|object $var) : boolean

Arguments

$var

string|integer|array|object

Response

boolean

PHP native function - is_string($var)

isString(string|integer|array|object $var) : boolean

Arguments

$var

string|integer|array|object

Response

boolean