wb-archiv283/branches/2.8.x/wb/include/quickSkin/_lib/qx/qx_count.php @ 1546
| 1 |
<?php
|
|---|---|
| 2 |
/**
|
| 3 |
* QuickSkin Extension count
|
| 4 |
* count element of an array
|
| 5 |
*
|
| 6 |
* Usage Example:
|
| 7 |
* Content: $template->assign('list', array('a','b'));
|
| 8 |
* Template: count: {count:list}
|
| 9 |
* Result: count: 2
|
| 10 |
*
|
| 11 |
* @author Andy Prevost andy@codeworxtech.com - original by Philipp v. Criegern philipp@criegern.de
|
| 12 |
*/
|
| 13 |
function qx_count ( $param ) { |
| 14 |
$temp = count( $param ); |
| 15 |
return $temp; |
| 16 |
}
|
| 17 |
|
| 18 |
?>
|