colap Posted February 6, 2011 Share Posted February 6, 2011 In c++ class we can declare function inside a class and then we can describe that function at bottom. Can i do this in PHP class? In C++ class: class Myclass{ void doall(); } void Myclass::doall(){ ............. ............. } Quote Link to comment https://forums.phpfreaks.com/topic/226878-php-class-function-and-c-class-function/ Share on other sites More sharing options...
trq Posted February 6, 2011 Share Posted February 6, 2011 No. How about instead of asking all these questions over and over you take a look at what can be done in php? http://php.net/oop Quote Link to comment https://forums.phpfreaks.com/topic/226878-php-class-function-and-c-class-function/#findComment-1170820 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.