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.
File
- jcarousel/
examples/ bestpractice/ jcarousel_functions.php, line 52
Code
function jcarousel_countItems() {
global $jcarousel_items;
return count($jcarousel_items);
}