예제 #1
0
 function format($result)
 {
     switch (gettype($result)) {
         case 'array':
             foreach ($result as $_k => $_v) {
                 $result[$_k] = bigapp_core::format($_v);
             }
             break;
         case 'boolean':
         case 'integer':
         case 'double':
         case 'float':
             $result = (string) $result;
             break;
     }
     return $result;
 }