Example #1
0
 /**
  * Squish nested arrays into a nice flat array, suitable for placeholder replacement.
  *
  * @param mixed $args Scalar or nested array to be "flattened" into a single array.
  * @return array      Single array comprised of all scalars present in $args.
  **/
 public static function smart_args($args)
 {
     Database::$args_tmp = array();
     array_walk_recursive($args, array('Database', 'merge_args'));
     // Return
     return Database::$args_tmp;
 }