3.15.5.183 |    

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.001 seconds at 325.89 KB/s

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

User online
There are 3 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)