Fat-Free Framework: Matrix Class Reference

Fat-Free-Framework

Fat-Free Framework  3.1.0 API Reference
Matrix Class Reference

Generic array utilities. More...

Inheritance diagram for Matrix:
Prefab

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
$datestring
$firstint
Matrix::changekey ( array &  $var,
  $old,
  $new 
)

Change the key of a two-dimensional array element

Returns
NULL
Parameters
$vararray
$oldstring
$newstring
Matrix::pick ( array  $var,
  $col 
)

Retrieve values from a specified column of a multi-dimensional array variable

Returns
array
Parameters
$vararray
$colmixed
Matrix::sort ( array &  $var,
  $col,
  $order = SORT_ASC 
)

Sort a multi-dimensional array variable on a specified column

Returns
bool
Parameters
$vararray
$colmixed
$orderint
Matrix::transpose ( array &  $var)

Rotate a two-dimensional array variable

Returns
NULL
Parameters
$vararray

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   doxygen 1.8.4