Is any way to check method type in php if it is public, private or protected?
what I tried: I have class and it have methods I can put this methods in url and grt pages so I need a way if the users put the private methods in url then the user get an error page such as "Access denied"
Ex:
if (method_type ('Get_user') == 'private'){
header ("location: ./")
}