Fat-Free Framework
3.1.0 API Reference
|
Matrix Class Reference
Generic array utilities. More...
Inheritance diagram for Matrix:
Public Member Functions | |
pick (array $var, $col) | |
transpose (array &$var) | |
sort (array &$var, $col, $order=SORT_ASC) | |
changekey (array &$var, $old, $new) | |
calendar ($date='now', $first=0) | |
Additional Inherited Members | |
Static Public Member Functions inherited from Prefab | |
static | instance () |
Detailed Description
Generic array utilities.
Member Function Documentation
Matrix::calendar | ( | $date = 'now' , |
|
$first = 0 |
|||
) |
Return month calendar of specified date, with optional setting for first day of week (0 for Sunday)
- Returns
- array
- Parameters
-
$date string $first int
Matrix::changekey | ( | array & | $var, |
$old, | |||
$new | |||
) |
Change the key of a two-dimensional array element
- Returns
- NULL
- Parameters
-
$var array $old string $new string
Matrix::pick | ( | array | $var, |
$col | |||
) |
Retrieve values from a specified column of a multi-dimensional array variable
- Returns
- array
- Parameters
-
$var array $col mixed
Matrix::sort | ( | array & | $var, |
$col, | |||
$order = SORT_ASC |
|||
) |
Sort a multi-dimensional array variable on a specified column
- Returns
- bool
- Parameters
-
$var array $col mixed $order int
Matrix::transpose | ( | array & | $var) |
Rotate a two-dimensional array variable
- Returns
- NULL
- Parameters
-
$var array
The documentation for this class was generated from the following file:
- matrix.php
Generated on Mon Aug 19 2013 21:27:50 for Fat-Free Framework by 1.8.4