What is the PHP callback function? how can this problem be solved?

Source: Internet
Author: User
What is the PHP callback function? Baidu: a lot of callbacks are called by function pointers. Next, I will talk about it step by step. Finally, it comes down to the C language. it's speechless! Is this callback so hard to understand? What is the key to Callback? Some people understand that this is another function called inside the function. I think this is not the case. Instead, I call myself, just like what the PHP callback function is like in the mathematical logic.
Baidu once said that a lot of callbacks are called back using function pointers. Then, one step at a time, it comes down to the C language. it's speechless! Is this callback so hard to understand?
What is the key to Callback? Some people understand that this is another function called inside the function. in my opinion, this is not the case. Instead, I call myself, just like the loop proof in the mathematical logic, such
Conditions ............ Verification: a = B;
Sometimes we will make such a verification error: Because B = a, so a = B, I believe that all people have made similar mistakes.
The callback function is similar to this in my understanding,
Function fn ($ ){
$ B = m;
$ C = $ B + fn ($ B );
Return;
}
I don't know what I understand, right? Share: More

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.