Search found 3 matches
- 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...
- Sat Aug 28, 2010 9:23 pm
- Forum: Challenges Solved
- Topic: Russian Dolls
- Replies: 40
- Views: 3189
- Sat Aug 28, 2010 9:14 pm
- Forum: Challenges Solved
- Topic: Lower Count
- Replies: 20
- Views: 1573