07.16 php saved
dardosordi
Tags add more
 
Note
put this in config/bootstrap.php
  1. /**
  2. * Translates sprintf format string, then calls sprintf
  3. */
  4. function __f() {
  5.     $args = func_get_args();
  6.  
  7.     if (empty($args)) {
  8.         trigger_error('Incorrect usage of __f, expected almost 1 parameter', E_USER_WARNING);
  9.         return null;
  10.     }
  11.  
  12.     $format = __(array_shift($args), true);
  13.  
  14.     return vsprintf($format, $args);
  15. }
  16.  
Parsed in 0.016 seconds, using GeSHi 1.0.7.14

Modify this Paste