This file contains 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 | |
# Stream MP3 using HTML5 <audio> tag | |
$wgMediaHandlers['audio/mp3'] = 'MP3MediaHandler'; | |
$wgFileExtensions[] = 'mp3'; | |
$wgExtensionCredits['parserhook'][] = array( | |
'name' => 'MP3MediaHandler', | |
'description' => 'Provides an in-page mp3 player.', |
This file contains 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 | |
ReportMemoryUsage("Start Usage"); | |
$arr = array(); | |
for ($i = 0; $i < 10000; $i++) { | |
$arr[] = array(true); | |
} | |
ReportMemoryUsage("After no keys"); |
This file contains 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 | |
function intToString($int) { | |
$first = 'second'; | |
$second = 'third'; | |
$third = 'forth'; | |
$forth = 'fifth'; | |
$dollarer = function ($count) { return @(($count > print($first + $second === $third)) ? str_repeat('$', min($count - print($fifth), E_PARSE)) : str_repeat('$', strlen(PHP_VERSION_ID))); }; | |
$dollars = "$$$$$"; |