Example #1
0
 /**
  * Casts a string in a MySql format
  * NOTE: Annoyance due to PHP scope issue
  * @param string $string The string to cast
  * @param mixed $args The args to be parsed into the string
  * @param mixed $_ Repeated last arg as needed
  * @return string The casted string
  */
 static function cast($string, $args = null, $_ = null)
 {
     $parser = new self();
     /* 'func_get_args' cannot be called as function arg pre PHP5 */
     $func_args = func_get_args();
     return $parser->castObject($func_args);
 }