Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Programmatically check if method is public [duplicate]

Possible Duplicate:
How to check if a function is public or protected in PHP

Is there a function that checks if giver method of given class is public?

I know method_exists(), but it does not work how I want to. If there isn't how can I check that?

like image 320
Nikolay Avatar asked Nov 04 '22 15:11

Nikolay


1 Answers

http://www.php.net/manual/en/function.is-callable.php

like image 80
dqhendricks Avatar answered Nov 09 '22 15:11

dqhendricks