You are here

public function SimpleXMLElement::getAttributeAsPhp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dependency-injection/SimpleXMLElement.php \Symfony\Component\DependencyInjection\SimpleXMLElement::getAttributeAsPhp()

Converts an attribute as a PHP type.

Parameters

string $name:

Return value

mixed

Overrides SimpleXMLElement::getAttributeAsPhp

1 method overrides SimpleXMLElement::getAttributeAsPhp()
SimpleXMLElement::getAttributeAsPhp in vendor/symfony/dependency-injection/SimpleXMLElement.php
Converts an attribute as a PHP type.

File

vendor/symfony/dependency-injection/SimpleXMLElement.php, line 35

Class

SimpleXMLElement
SimpleXMLElement class.

Namespace

Symfony\Component\DependencyInjection

Code

public function getAttributeAsPhp($name) {
  return self::phpize($this[$name]);
}