gish Posted December 7, 2008 Share Posted December 7, 2008 hi phpfreaks how do i use a function to call a function in oop and what is the term used in php for what I am asking for? Thanks for any help =) gish Quote Link to comment https://forums.phpfreaks.com/topic/135969-solved-function-call/ Share on other sites More sharing options...
.josh Posted December 7, 2008 Share Posted December 7, 2008 You mean like this? <?php function foo() { // do something } function bar() { foo(); } ?> or this? <?php class something { function foo() { // do something } function bar() { $this->foo(); } } ?> Quote Link to comment https://forums.phpfreaks.com/topic/135969-solved-function-call/#findComment-708776 Share on other sites More sharing options...
gish Posted December 7, 2008 Author Share Posted December 7, 2008 the first one thanks. Quote Link to comment https://forums.phpfreaks.com/topic/135969-solved-function-call/#findComment-708800 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.