jimfog Posted October 4, 2012 Share Posted October 4, 2012 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 More sharing options...
justsomeguy Posted October 4, 2012 Share Posted October 4, 2012 Terms like that generally don't change definitions between languages, they're terms in programming in general. "Callback" isn't a Javascript term, it's a programming term. Link to comment Share on other sites More sharing options...
jimfog Posted October 5, 2012 Author Share Posted October 5, 2012 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 More sharing options...
thescientist Posted October 5, 2012 Share Posted October 5, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now