wb-archiv283/tags/2.8.3/wb/include/quickSkin_alpha/_lib/qx/qx_count.php @ 1657
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 |
}
|