public function allNumberFormats(PHPExcel $pPHPExcel = null)
    {
        // Get an array of unique number formats
        $aNumFmts = array();
        $aStyles = $this->allStyles($pPHPExcel);

        foreach ($aStyles as $style) {
            if ($style->getNumberFormat()->getBuiltInFormatCode() === false && !array_key_exists($style->getNumberFormat()->getHashCode(), $aNumFmts)) {
                $aNumFmts[ $style->getNumberFormat()->getHashCode() ] = $style->getNumberFormat();
            }
        }

        return $aNumFmts;
    }
public function allNumberFormats(PHPExcel $pPHPExcel = null)
    {
        // Get an array of unique number formats
        $aNumFmts = array();
        $aStyles = $this->allStyles($pPHPExcel);

        foreach ($aStyles as $style) {
            if ($style->getNumberFormat()->getBuiltInFormatCode() === false && !array_key_exists($style->getNumberFormat()->getHashCode(), $aNumFmts)) {
                $aNumFmts[ $style->getNumberFormat()->getHashCode() ] = $style->getNumberFormat();
            }
        }

        return $aNumFmts;
    }
public function allNumberFormats ( PHPExcel $ pPHPExcel = null ) { // Get an array of unique number formats $ aNumFmts = array ( ) ; $ aStyles = $ this -> allStyles ( $ pPHPExcel ) ; foreach ( $ aStyles as $ style ) { if ( $ style -> getNumberFormat ( ) -> getBuiltInFormatCode ( ) === false && ! array_key_exists ( $ style -> getNumberFormat ( ) -> getHashCode ( ) , $ aNumFmts ) ) { $ aNumFmts [ $ style -> getNumberFormat ( ) -> getHashCode ( ) ] = $ style -> getNumberFormat ( ) ; } } return $ aNumFmts ; }
Get an array of all number formats

@param     PHPExcel                                $pPHPExcel
@return     PHPExcel_Style_NumberFormat[]        All number formats in PHPExcel
@throws     PHPExcel_Writer_Exception
Get an array of all number formats