38.107.191.114 |    

Navigation

Google Advertisement

Die Funktion create_function() ist der gleichnamigen PHP Funktion nach empfunden. Sie erstellt eine anonyme Funktion (lambda-style) aus den Übergebenden Parametern und gibt eindeutigen Namen zurück.

create_function
  1. /**
  2.  * Create an anonymous (lambda-style) function.
  3.  */
  4. function create_function (args, code) {
  5.  
  6. try { // Original by: Johnny Mast (http://www.phpvrouwen.nl)
  7. 	return Function.apply(null, args.split(',').concat(code));
  8. } catch (e) {
  9. 	return false;
  10. }
  11.  
  12. }
Parsed in 0.004 seconds at 58.11 KB/s

Search
 
Full text search by name and content of a snippet.

User online
There are 5 users online.

Tags Cloud

Latest snippets
urlencode
(Perl::Function)
gethostbyaddr
(Perl::Function)
create_function
(JavaScript::Snippets)
function_exists
(JavaScript::Snippets)
listing
(PHP::Function)
runPhpCode
(PHP::Function)
md5
(Bash::Function)
rtrim
(Bash::Function)
ltrim
(Bash::Function)
function_exists
(Bash::Function)