diff --git a/Documentation/Examples/Calculations/Database/DAVERAGE.php b/Documentation/Examples/Calculations/Database/DAVERAGE.php index 387e1a93..adf4636c 100644 --- a/Documentation/Examples/Calculations/Database/DAVERAGE.php +++ b/Documentation/Examples/Calculations/Database/DAVERAGE.php @@ -16,15 +16,14 @@ date_default_timezone_set('Europe/London'); -

PHPExcel Calculation Example

-

Database Formulae

-

DAVERAGE

+

DAVERAGE

+

Returns the average of selected database entries.

-

PHPExcel Calculation Example

-

Database Formulae

-

DCOUNT

+

DCOUNT

+

Counts the cells that contain numbers in a database.

-

PHPExcel Calculation Example

-

Database Formulae

-

DMAX

+

DMAX

+

Returns the maximum value from selected database entries.

-

PHPExcel Calculation Example

-

Database Formulae

-

DMIN

+

DMIN

+

Returns the minimum value from selected database entries.

-

PHPExcel Calculation Example

-

Database Formulae

-

DSTDEV

+

DSTDEV

+

Estimates the standard deviation based on a sample of selected database entries.

-

PHPExcel Calculation Example

-

Database Formulae

-

DSTDEVP

+

DSTDEVP

+

Calculates the standard deviation based on the entire population of selected database entries.

-

PHPExcel Calculation Example

-

Database Formulae

-

DVAR

+

DVAR

+

Estimates variance based on a sample from selected database entries.

-

PHPExcel Calculation Example

-

Database Formulae

-

DVARP

+

DVARP

+

Calculates variance based on the entire population of selected database entries,

-

PHPExcel Calculation Example

-

Data/Time Formulae

-

DATE

+

DATE

+

Returns the serial number of a particular date.

-

PHPExcel Calculation Example

-

Data/Time Formulae

-

DATEVALUE

+

DATEVALUE

+

Converts a date in the form of text to a serial number.

-

PHPExcel Calculation Example

-

Data/Time Formulae

-

TIME

+

TIME

+

Returns the serial number of a particular time.

-

PHPExcel Calculation Example

-

Data/Time Formulae

-

TIMEVALUE

+

TIMEVALUE

+

Converts a time in the form of text to a serial number.

+ + + + +PHPExcel Calculation Function Examples + + + + +PHPExcel Calculation Function Examples'; + +$exampleTypeList = glob('./*',GLOB_ONLYDIR); + +foreach($exampleTypeList as $exampleType) { + + echo '

' . pathinfo($exampleType,PATHINFO_BASENAME) . ' Function Examples

'; + + $exampleList = glob('./'.$exampleType.'/*.php'); + + foreach($exampleList as $exampleFile) { + $fileData = file_get_contents($exampleFile); + + $h1Pattern = '#

(.*?)

#'; + $h2Pattern = '#

(.*?)

#'; + + if (preg_match($h1Pattern, $fileData, $out)) { + $h1Text = $out[1]; + $h2Text = (preg_match($h2Pattern, $fileData, $out)) ? $out[1] : ''; + + echo '',$h1Text,'
'; + if ($h2Text > '') { + echo $h2Text,'
'; + } + } + + } +} + +?> + + \ No newline at end of file diff --git a/Documentation/Examples/Reader/exampleReader14.php b/Documentation/Examples/Reader/exampleReader14.php index b8a2b6d1..bef1916c 100644 --- a/Documentation/Examples/Reader/exampleReader14.php +++ b/Documentation/Examples/Reader/exampleReader14.php @@ -10,7 +10,7 @@ -

PHPExcel Reader Example #15

+

PHPExcel Reader Example #14

Reading a Large CSV file in "Chunks" to split across multiple Worksheets

-PHPExcel Reader Example #08 +PHPExcel Reader Example #17 -

PHPExcel Reader Example #08

+

PHPExcel Reader Example #17

Simple File Reader Loading Several Named WorkSheets

PHPExcel '.pathinfo($exampleType,PATHINFO_BASENAME).' Examples'; + echo '

PHPExcel ' . pathinfo($exampleType,PATHINFO_BASENAME) . ' Examples

'; $exampleList = glob('./'.$exampleType.'/*.php'); @@ -36,7 +36,8 @@ foreach($exampleTypeList as $exampleType) { $h2Text = (preg_match($h2Pattern, $fileData, $out)) ? $out[1] : ''; echo '',$h1Text,'
'; - if ($h2Text > '') { + if (($h2Text > '') && + (pathinfo($exampleType,PATHINFO_BASENAME) != 'Calculations')) { echo $h2Text,'
'; } } diff --git a/Documentation/PHPExcel Function Reference developer documentation.doc b/Documentation/PHPExcel Function Reference developer documentation.doc index e20f03cf..8be41483 100644 Binary files a/Documentation/PHPExcel Function Reference developer documentation.doc and b/Documentation/PHPExcel Function Reference developer documentation.doc differ