This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function instanceof Object // true | |
Boolean instanceof Function // true | |
Number instanceof Function // true | |
String instanceof Function // true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Functional Programming example in PHP | |
<?php | |
function myFoo($foo){ | |
return function ($bar) use ($foo){ | |
return "Foo is ${foo} and Bar is ${bar}"; | |
}; | |
} | |
//first call set $foo = 'Asd' | |
$myBarAsd = myFoo('Asd'); |
NewerOlder