コード例 #1
0
 public static function returnCombo($comboString)
 {
     // Use regex to match everything between < and >
     preg_match_all("/\\<(.*?)\\>/si", $comboString, $match);
     // Loop through each result
     foreach ($match[1] as $extractedGenID) {
         // Access each generator contained with these tags and replace the original string
         $result = RandomGen::returnGenerator($extractedGenID);
         $comboString = str_replace("<" . $extractedGenID . ">", $result, $comboString);
     }
     return $comboString;
 }