2010/10/13 Stas Malyshev <smalys...@sugarcrm.com>

> Hi!
>
>
>  As for isset(), it doesn't cover the use case for property_exists(), as
>> isset() returns false when a property exists, and is one of these values:
>>
>> null, false, int 0, float 0, string '', empty array()
>>
>> property_exists() more closely relates to "array_key_exists() for objects"
>> in that regard.
>>
>
> This is not true. isset() only returns false if the property doesn't exist
> or is set to null.
>
>
yeah, but property_exists would return true for null value if the property
itself exists, so they don't 100% interchangeable

Tyrael

Reply via email to