Project

General

Profile

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
  }
(9-9/44)