array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'reflectionproperty.getmangledname.php', 1 => 'ReflectionProperty::getMangledName', 2 => 'Gets the mangled name of the property', ), 'up' => array ( 0 => 'class.reflectionproperty.php', 1 => 'ReflectionProperty', ), 'prev' => array ( 0 => 'reflectionproperty.gethooks.php', 1 => 'ReflectionProperty::getHooks', ), 'next' => array ( 0 => 'reflectionproperty.getmodifiers.php', 1 => 'ReflectionProperty::getModifiers', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/reflection/reflectionproperty/getmangledname.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

ReflectionProperty::getMangledName

(No version information available, might only be in Git)

ReflectionProperty::getMangledNameGets the mangled name of the property

Description

public function ReflectionProperty::getMangledName(): string

Returns the mangled (internal) name of the property, which encodes the visibility scope for private and protected properties.

For public properties, the mangled name is identical to the property name. For protected properties, the mangled name has the form \0*\0name. For private properties, the mangled name has the form \0ClassName\0name.

Parameters

This function has no parameters.

Return Values

The mangled name of the reflected property.

Changelog

Version Description
8.5.0 This method was introduced.

See Also