SimpleSAML_Utilities::transposeArray PHP Method

transposeArray() public static method

Deprecation: This method will be removed in SSP 2.0. Please use SimpleSAML\Utils\Arrays::transpose() instead.
public static transposeArray ( $in )
    public static function transposeArray($in)
    {
        return SimpleSAML\Utils\Arrays::transpose($in);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * This function retrieves statistics about all memcache server groups.
  *
  * @return Array with the names of each stat and an array with the value for each
  *         server group.
  */
 public static function getStats()
 {
     $ret = array();
     foreach (self::getMemcacheServers() as $sg) {
         $stats = $sg->getExtendedStats();
         if ($stats === FALSE) {
             throw new Exception('Failed to get memcache server status.');
         }
         $stats = SimpleSAML_Utilities::transposeArray($stats);
         $ret = array_merge_recursive($ret, $stats);
     }
     return $ret;
 }
All Usage Examples Of SimpleSAML_Utilities::transposeArray