Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function cleanFetchAll($fValue){
- if (!is_array($fValue))
- return $fValue;
- for ($i = 0; $i < count($fValue); $i++)
- foreach($fValue[$i] as $varname => $value){
- if (is_string($varname))
- $value = htmlentities($value);
- if ($varname == "playtime" && !is_int($varname))
- $value = $this->convertTimer($value);
- if (!is_int($varname))
- $return[$i][$varname] = $value;
- }
- return $return;
- }
- public function htmlentitiesArray($arrayName){
- if (!is_array($arrayName))
- return false;
- foreach ($arrayName as $key => $value)
- $array[$key] = htmlentities($value);
- return $array;
- }
Add Comment
Please, Sign In to add comment