cakephp 2.7 - Is there a way in PHP to do something just after the return statement ..?


I am working on API's and I want to do some task after I have returned the response.





If called from within a function, the return statement immediately ends execution of the current function, and returns its argument as the value of the function call.

Maybe change your program logic.

People are also looking for solutions to the problem: php - Insert Multiple not empty


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.