You are here

function jcarousel_countItems in jCarousel 6

This function returns the number items. Typically, this would fetch it from a database (SELECT COUNT(*) FROM items) or from a directory.

1 call to jcarousel_countItems()
index.php in jcarousel/examples/bestpractice/index.php

File

jcarousel/examples/bestpractice/jcarousel_functions.php, line 52

Code

function jcarousel_countItems() {
  global $jcarousel_items;
  return count($jcarousel_items);
}