php property_exists fix for protected or private properties


/ Published in: PHP
Save to your folder(s)

Comes in handy for php magic functions such as __get and __set. This behaviour is fixed in php 5.3. Returns true also for private and protected properties using a reflectionclass

URL: http://php.net/manual/en/function.property-exists.php

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.