Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (27 sloc) 515 Bytes
<?php
namespace gchart;
/**
* @brief Utility class
*
* @version 0.2
* @since 0.4
*/
class utility
{
public static function getMaxOfArray($ArrayToCheck)
{
$maxValue = 0;
foreach($ArrayToCheck as $temp)
{
if(is_array($temp))
{
$maxValue = max($maxValue, utility::getMaxOfArray($temp));
}
else
{
$maxValue = max($maxValue, $temp);
}
}
return $maxValue;
}
}
Something went wrong with that request. Please try again.