knowNothing Posted April 27, 2007 Share Posted April 27, 2007 Here's what I want to do. I need to access a class member function from outside the class, and hopefully without having to instantiate the class if possible? I have an HTML form <select> and each <option> item is being pulled from an array stored in a mysql db. But I'm doing this independently of the normal purpose of the class itself, I just want to use that member function. Link to comment https://forums.phpfreaks.com/topic/48876-access-class-member-function-without-instantiating-class-or-that-cannot-be-done/ Share on other sites More sharing options...
boo_lolly Posted April 27, 2007 Share Posted April 27, 2007 we're programmers, not psychics. why don't you post some code? and there is a child-forum for all OOP questions here. Link to comment https://forums.phpfreaks.com/topic/48876-access-class-member-function-without-instantiating-class-or-that-cannot-be-done/#findComment-239551 Share on other sites More sharing options...
neel_basu Posted April 27, 2007 Share Posted April 27, 2007 class_name::member_function(); Link to comment https://forums.phpfreaks.com/topic/48876-access-class-member-function-without-instantiating-class-or-that-cannot-be-done/#findComment-239604 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.