Tandem Posted March 13, 2007 Share Posted March 13, 2007 If i was to do this: <?php $foo = "random text"; $bar = inner_function(outer_function($foo)); ?> Which of the functions is executed first? The "inner" or the "outer"? Google won't seem to throw up the simple answer i need. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
tarun Posted March 13, 2007 Share Posted March 13, 2007 Confused? ??? What Do You Mean Quote Link to comment Share on other sites More sharing options...
Tandem Posted March 13, 2007 Author Share Posted March 13, 2007 In short: When calling functions from inside of other function calls, what is the order that they are executed in? Quote Link to comment Share on other sites More sharing options...
tarun Posted March 13, 2007 Share Posted March 13, 2007 I Would Have Thought The Inner_Function But Try A Few Tests Quote Link to comment Share on other sites More sharing options...
Tandem Posted March 13, 2007 Author Share Posted March 13, 2007 The reason i posted it here is because i am not currently in a position to do a test. Quote Link to comment Share on other sites More sharing options...
Orio Posted March 13, 2007 Share Posted March 13, 2007 It starts from the inside to the outside. Orio. Quote Link to comment 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.