Jump to content

callbacks in PHP


jimfog

Recommended Posts

From a search I made in the web the concept of callback exists in PHP as it exists in javascript. The question, is though, are we talking about the same thing? In js, when a function is passed as an argument then we say that the latter function is a callback. When you use the term callback in PHP, does it have the same meaning as in javascript? Meaning a function that get passed as an argument to another function?

Link to comment
Share on other sites

Ok...do you confirm that callback is when a function is passed as an argument?I just wanted to know.

Link to comment
Share on other sites

Ok...do you confirm that callback is when a function is passed as an argument?I just wanted to know.
it won't hurt to look it up eitherhttp://en.wikipedia.org/wiki/Callback_(computer_programming)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...