php8.5
Home/ Manual/ reflection / reflectionproperty/ ReflectionProperty::getMangledName

ReflectionProperty::getMangledName

PHP function Edit on GitHub ✎

Gets the mangled name of the property

Description

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 Parameters

Return Values

The mangled name of the reflected property.

Changelog

VersionDescription
8.5.0This method was introduced.

See Also

  • ReflectionProperty::getName

Source: reference/reflection/reflectionproperty/getmangledname.xml · from the official PHP manual (php/doc-en)