Zum Inhalt der Seite gehen


@Crell is it an oversight that get_class_vars is unable to see the property hooks 🤔 I know I should be using Reflection but get_object_vars is able to see them. For reference 3v4l.org/qdcah

#propertyhooks #detection #php

Als Antwort auf Larry Garfield

Not really. get_class_vars() gives you the default value of properties, but virtual properties don't have default values (or rather, don't have values at all). If you make it backed, it, get_class_vars() will return it.
Dieser Beitrag wurde bearbeitet. (4 Wochen her)

Diese Webseite verwendet Cookies. Durch die weitere Benutzung der Webseite stimmst du dieser Verwendung zu. https://inne.city/tos