0

Hi

Is it possible to overload return() function for some part of code (ie. for the scope of some class)? I would NOT like to define separate function to do 'other stuff' and use it on every return like that: return(myFunction());

Is it possible? Maybe there is some other trick?

Thanks

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by edek
0

I'm afraid it isn't possible. But if you tell us why would you ever want such a thing maybe someone will come up with a better solution.

0

I'm afraid it isn't possible. But if you tell us why would you ever want such a thing maybe someone will come up with a better solution.

Thank you for your reply! :) This question was due to my little knowledge in PHP, then...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.