Guest User

Untitled

a guest
May 25th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.87 KB | None | 0 0
  1.     public function cleanFetchAll($fValue){
  2.         if (!is_array($fValue))
  3.             return $fValue;
  4.        
  5.         for ($i = 0; $i < count($fValue); $i++)
  6.             foreach($fValue[$i] as $varname => $value){
  7.                 if (is_string($varname))
  8.                     $value = htmlentities($value);
  9.                
  10.                 if ($varname == "playtime" && !is_int($varname))
  11.                     $value = $this->convertTimer($value);
  12.                    
  13.                 if (!is_int($varname))
  14.                     $return[$i][$varname] = $value;
  15.             }
  16.  
  17.         return $return;
  18.     }
  19.  
  20.     public function htmlentitiesArray($arrayName){
  21.         if (!is_array($arrayName))
  22.             return false;
  23.        
  24.         foreach ($arrayName as $key => $value)
  25.             $array[$key] = htmlentities($value);
  26.        
  27.         return $array;
  28.     }
Add Comment
Please, Sign In to add comment