public static function fromArray($array, $save_indexes = true)
    {
        $circular = new self(count($array));

        foreach ($array as $key => $value) {
            $circular[$key] = $value;
        }

        return $circular;
    }
public static function fromArray($array, $save_indexes = true)
    {
        $circular = new self(count($array));

        foreach ($array as $key => $value) {
            $circular[$key] = $value;
        }

        return $circular;
    }
public static function fromArray ( $ array , $ save_indexes = true ) { $ circular = new self ( count ( $ array ) ) ; foreach ( $ array as $ key => $ value ) { $ circular [ $ key ] = $ value ; } return $ circular ; }
Convert a simple array to fixed circular array

@param  array   $array
@param  boolean $save_indexes
@return FixedCircularArray
Convert a simple array to fixed circular array