PHP 8.6.0 Alpha 2 available for testing

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

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top