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 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(); } } ?> 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. Link to comment https://forums.phpfreaks.com/topic/135969-solved-function-call/#findComment-708800 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.