hansford Posted October 12, 2015 Share Posted October 12, 2015 You guys are really bored, but ah well. Here is my addition. print_r("hello world"); exec(print "hello world"); foreach(array('h','e','l','l','o',' ', 'w','o','r','l','d') as $letter) { echo $letter; } Quote Link to comment Share on other sites More sharing options...
Barand Posted October 12, 2015 Share Posted October 12, 2015 function x($a, $b) { $res = 0; while ($b) { if ($b%2) $res += $a; $a <<= 1; $b >>= 1; } return $res; } function y($j,$k) { echo chr($j+58|($k?0x20:0)); } $a = str_split(x(0xC0421DB,0x07),2) ; $b = str_split(x(0x5CDD207, 0x1E),2); array_walk($a , 'y'); echo ', '; array_walk($b , 'y'); 2 Quote Link to comment Share on other sites More sharing options...
scootstah Posted October 13, 2015 Share Posted October 13, 2015 (edited) You'll have to run this one in your browser. <?php $expected = 'Hello, World!'; $string = ''; $charPool = range(32, 126); unset($charPool[2], $charPool[7]); $charPool = implode('', array_map(function($char){ return chr($char); }, $charPool)); echo <<<HEREDOC <style type="text/css">#hello-world span{font-family:monospace;width:20px;height:20px;display:inline-block;text-align:center;vertical-align:middle;</style><div id="hello-world"></div><script type="text/javascript">for(var el=document.getElementById("hello-world"),expected="Hello, World!",pool='{$charPool}',i=0;i<expected.length;i++){var newEl=document.createElement("span");el.appendChild(newEl),el.children[i].interval=setInterval(function(e){var l=Math.floor(Math.random()*(pool.length+1));el.children[e].textContent=pool[l],el.children[e].textContent==expected[e]&&clearInterval(el.children[e].interval)},50,i)}</script> HEREDOC; ?> Nobody said we can't use Javascript, right? Edited October 13, 2015 by scootstah Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.