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
| <?php | |
| class Pipeline | |
| { | |
| public static function make_pipeline(...$funcs) | |
| { | |
| $args = func_get_args(); | |
| return function($arg) use ($args) | |
| { | |
| foreach($args as $function) { |
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
| <?php | |
| class Palindrome | |
| { | |
| public static function isPalindrome($word) | |
| { | |
| $word = strtolower($word); | |
| $newWord = ""; | |
| for ($i = strlen($word)-1; $i >= 0; $i--){ | |
| $newWord = $newWord . $word[$i]; |
NewerOlder