3 //die(urldecode("http://www.aliveband.se/L%e5tar/07-HARD%20DAYS%20NIGHT.mp3"));
8 ///CODE//////////////////
9 function str2lower($str) {
10 return strtolower($str);
12 function str2upper($str) {
13 return strtoupper($str);
16 function fill_notset($str, $len, $char) {
18 $start = strlen($strout);
19 for($i=$start;$i<$len;$i++
) {
24 //echo(fill_notset("aa", 5, "b")); die();
25 /////////////////////////
26 $origstr = $str = str2lower($str);
31 for (;$len > 0;$len--) {
35 $i = base_convert($mask, 2, 10); //echo($i);
37 $mask = base_convert($i, 10, 2);
38 $mask = fill_notset($mask, $len, "b");
39 if(strlen($mask) > strlen($str) ||
$i < 0) { die(); }
43 for ($len = $origlen-1;$len>=0;$len--) {
44 if(isset($mask[$len]) && $mask[$len] == "1") {
45 $str[$len] = str2upper($str[$len]);
51 $mask = str_replace(array("0","1"), array("1","0"), $mask);
53 for ($len = $origlen-1;$len>=0;$len--) {
54 if(isset($mask[$len]) && $mask[$len] == "1") {
55 $str[$len] = str2upper($str[$len]);
This page took 1.211593 seconds and 4 git commands to generate.