$s="102119200001141520080518001605181200080103110518"; while($p=substr($s,$i,2)){$i+=2;$a="a";$p--; while($p){if($p<0){$a=" ";last;}$p--;$a++;} print uc($a);}print "\n";

Replies are listed 'Best First'.
RE: String incrementing rulz!
by BlueLines (Hermit) on Aug 10, 2000 at 00:42 UTC
    good stuff. consider using <code> tags and indenting some, so your code would look readable like this:
    $s="102119200001141520080518001605181200080103110518"; while($p=substr($s,$i,2)){ $i+=2;$a="a"; $p--; while($p){ if($p<0){ $a=""; last; } $p--; $a++; } print uc($a); } print "\n";

    Update: turnstep is right. it's kinda dumb to indent code that's supposed to be unreadble. forget this ever happened.

    BlueLines

    Disclaimer: This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.
      Ummm....this is the Obfuscated code section. It's supposed to be unreadable! :)
        lol. but unreadable in a recognizable way perhaps? :-)

        *mumbles something about not posting before having his coffee*

        BlueLines

        Disclaimer: This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.