jd2007 Posted September 7, 2007 Share Posted September 7, 2007 What function do i need to use to get all of the construct's arguments of a class ? Quote Link to comment https://forums.phpfreaks.com/topic/68313-solved-what-function-to-use-to-get-all-the-constructs-arguments-of-a-class/ Share on other sites More sharing options...
vijayfreaks Posted September 7, 2007 Share Posted September 7, 2007 Hi.. see the Class/Object Functions in php manuals.. get_object_vars ,get_class_vars .. -Vijay Quote Link to comment https://forums.phpfreaks.com/topic/68313-solved-what-function-to-use-to-get-all-the-constructs-arguments-of-a-class/#findComment-343496 Share on other sites More sharing options...
trq Posted September 7, 2007 Share Posted September 7, 2007 The only way I can see that this is possible from outside of the class would be using reflection. Otherwise, from within the function itself you can call func_get_args. Quote Link to comment https://forums.phpfreaks.com/topic/68313-solved-what-function-to-use-to-get-all-the-constructs-arguments-of-a-class/#findComment-343497 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.