Created
September 12, 2015 21:51
-
-
Save kevingessner/2297023e21b65624593e to your computer and use it in GitHub Desktop.
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 × { | |
static function ¼($n) { | |
return $n/4; | |
} | |
static function ½($n) { | |
return $n/2; | |
} | |
static function ¾($n) { | |
return $n * 3 / 4; | |
} | |
static function ²($n) { | |
return $n * $n; | |
} | |
static function ³($n) { | |
return self::²($n) * $n; | |
} | |
} | |
class ¥£ { | |
function __construct($¤) { | |
$this->¤ = $¤; | |
} | |
} |
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 | |
require 'lol.php'; | |
$¿ = ×::²(5); | |
printf("5 x 5 = %d\n", $¿); | |
// 5 x 5 = 25 | |
$¢ = new ¥£(×::½(7)); | |
printf("%f\n", $¢->¤); | |
// 3.500000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment