Name
create_function
Synopsis
string create_function(stringarguments
, stringcode
)
Creates an anonymous function with the given
arguments
and
code
; returns a generated name for the
function. Such anonymous functions (also called lambda
functions
) are useful for short-term callback functions,
such as when using usort( )
.
Get Programming PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.