Created
March 1, 2012 11:58
-
-
Save r3dsm0k3/1949346 to your computer and use it in GitHub Desktop.
Sucker Strings
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 | |
$array = array('\x4f\160\x65\162\x61\40\x4d\151\x6e\151'); | |
foreach ($array as $key => $value) { | |
// doesn't work. | |
$array[$key] = "$value"; | |
// doesn't work | |
$array[$key] = sprintf($value); | |
} | |
//Why does this display Opera Mini ? | |
echo "\x4f\160\x65\162\x61\40\x4d\151\x6e\151"; | |
echo "<br/>"; | |
//Why doesnt the array[1] display Opera Mini ? | |
print_r($array); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment