Search found 3 matches

by Curiosu
Sat Aug 28, 2010 9:29 pm
Forum: Challenges Solved
Topic: Valuation
Replies: 103
Views: 9331

I wanted to see the string too, so two passes was made, ugly but it works php $orig = '93752xxx746......'; echo $orig; $str=str_split($orig); $a=0;$b=0; foreach($str as $char) { if (is_numeric($char)) {$a=$b;$b=$char;}; if ($char == 'x') {$orig=preg_replace('/x/',$a.$b,$orig,1);}; } echo '<br/>'.$or...
by Curiosu
Sat Aug 28, 2010 9:23 pm
Forum: Challenges Solved
Topic: Russian Dolls
Replies: 40
Views: 3189

used this php function ..it was a pain, first I thought it was simple zip, function extractGzip ($src, $dest=false) { $zp = gzopen( $src, "r" ); if (!is_resource($zp)) return false; $data = ''; while (!gzeof($zp)) $data .= gzread($zp, 1024*1024); gzclose( $zp ); if (empty($dest)) return $d...
by Curiosu
Sat Aug 28, 2010 9:14 pm
Forum: Challenges Solved
Topic: Lower Count
Replies: 20
Views: 1573

php $i=0; $str=str_split("mQmPtphqGrboHhmgaqVhCdwTwignlQvjIopDqVpgaNrwkAzVcnkHyNiPdSmgJmgrPiMjpnjdbuPucHnouwfKuPcybromnmbvfxJqRnnOvWsceZeYzRyqnkaaFsffjenxoIhqHnIzorlOdwZoxYmAuNwNnRppguwidvbtOqdbUngpZdbGqwYjfpLzPjRtwVwEqBbYmCqbKwuziCoEwPsIkJgruTbhdyWpvPztAodufjZxLaZcUeFaklSmeRfolohVbXoDfIqMqgIrQ...