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 | |
| $array_aplanar = | |
| [ | |
| 'primero', | |
| 'segundo' => | |
| [ | |
| 'uno' => | |
| [ | |
| 'numero uno', 'numero dos', 'numero tres', 1.5, false |
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 | |
| $token_stop_character = [ | |
| '(' => 'open_parentesis', | |
| ')' => 'close_parentesis', | |
| '=' => 'igual', | |
| '[' => 'open_corchete_cuadrado', | |
| ']' => 'close_corchete_cuadrado', | |
| ' ' => 'espacio', | |
| '*' => 'multiplicación', |
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 | |
| $tokens = [ | |
| '(' => 'open_parentesis', | |
| ')' => 'close_parentesis', | |
| '=' => 'igual', | |
| '[' => 'open_corchete_cuadrado', | |
| ']' => 'close_corchete_cuadrado', | |
| ]; | |
| $string = 'let hola = (uno) => [ uno ** 2, 5];'; |
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 | |
| if(! function_exists('lastElement')) | |
| { | |
| function lastElement($lastElement) | |
| { | |
| if(!is_array($lastElement) || $lastElement == []){ | |
| return []; | |
| } else{ | |
| return $lastElement[count($lastElement) - 1]; |
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
| process.stdin.resume(); | |
| process.stdin.setEncoding('utf8'); | |
| const uno = (dos) => { | |
| return (tres) => { | |
| return dos + tres; | |
| } | |
| } | |
| const cuatro = (seis) => { |