public static function showQuery($query, $data, $doEcho = true, $usesColon = false)
 {
     krsort($data);
     foreach ($data as $key => $value) {
         if ($usesColon == false) {
             echo $key . "\n";
             $query = str_replace(":" . $key, "'" . str_replace("'", "''", $value) . "'", $query);
         } else {
             $query = str_replace($key, "'" . str_replace("'", "''", $value) . "'", $query);
         }
     }
     if ($doEcho) {
         preformat2($query);
         preformat2($data);
     }
     return $query;
 }
 public static function printChar($str, $doEcho = true)
 {
     $arr2 = array();
     for ($i = 0; $i < strlen($str); $i++) {
         $arr2[] = ord(substr($str, $i, 1)) . "\t" . substr($str, $i, 1);
     }
     if ($doEcho) {
         preformat2($arr2);
     }
     return $arr2;
 }