property_exists
Opis
bool property_exists ( mixed class, string property )
This function checks if the given property exists in
the specified class (and if it is accessible from the current scope).
Notatka: As opposed with isset(), property_exists() returns TRUE even if the property has the value NULL.
Parametry
classThe class name or an object of the class to test for
propertyThe name of the property
Zwracane wartości
Returns TRUE if the property exists, FALSE if it doesn't exist or NULL in case of an error.
Przykłady
| Poprzedni | Spis treści | Następny |
| method_exists | Początek rozdziału |