anche io l'ho fatta, ma più lunga

Codice PHP:
<?php
  $stringa 
"A1B33C56d66e89";
  for (
$i=0$i<strlen($stringa); $i++){
    
$pos substr($stringa$i1);
    if (
ereg("[a-zA-Z]",$pos)) {
      
$result .= $pos.'=';
      
$i++;
      while (
ereg("[0-9]"substr($stringa$i1))) {
        
$result .= substr($stringa$i1);
        
$i++;
      }
      
$result .= ";
"
;
      
$i--;
    }
  }
  echo 
$result;
?>