PHP » PYTHON |
login |
register |
about
|
PYTHON property_exists
is this article helpful?
|
Python replacement for PHP's property_exists
[
edit
| history
]
hasattr(class, property) property_exists(PHP 5 >= 5.1.0) property_exists — Checks if the object or class has a property DescriptionThis function checks if the given property exists in the specified class.
Parameters
Return ValuesReturns TRUE if the property exists, FALSE if it doesn't exist or NULL in case of an error. Changelog
Examples
Example #1 A property_exists() example
<?php
|
more
Recently updated
more
Most requested
more
Last requests
|