PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
-- Hint: use Ctrl+Enter for SQL autocomplete
Copy Clear
Copy Format Clear
<?php class LOL { static function php($n) { return $n + 1; } } // # LOL 5. Final nail in the coffin. Need to use another hack, // to get it working. Because PHP arrays are the broken by design $houseIsBurning = array_filter(array_map($superlol2, [1,2,3]), function($n) { return $n % 2 == 0; }); var_dump($houseIsBurning[0]); // Should be 2 var_dump($houseIsBurning[1]); // LOLPHP $houseIsBurning = array_values($houseIsBurning); var_dump($houseIsBurning[0]); // Should be 2 var_dump($houseIsBurning[1]); // Should be 4
Show:  
Copy Clear