Timeline for How to check an elements elementType
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 12, 2018 at 9:36 | history | edited | carlcs | CC BY-SA 3.0 |
fixed link
|
Mar 12, 2018 at 9:20 | comment | added | carlcs |
They are both very different, ::class returns the fully qualified class name for a class name and get_class() the fully qualified class name for an instance of a class.
|
|
Mar 9, 2018 at 20:36 | comment | added | Robin Schambach |
Just a simple question, would you mind to explain why you use 2 different functions here? I know the behavior of ::class and get_class I would just like to know why you use get_class(element) == Entry::class instead of element::class == Entry::class
|
|
Mar 7, 2018 at 10:36 | history | answered | carlcs | CC BY-SA 3.0 |