- print_r: documentation ( source)
- range: documentation ( source)
<?php
$recentlyViewed = $products = range(1,10);
echo '$recentlyViewed =>';
print_R($recentlyViewed);
echo '$products =>';
print_R($products);
$products = range(1,10);
$recentlyViewed = ($products) ? true : false;
echo '$products =>';
print_R($products);
print_R('$recentlyViewed =>'.$recentlyViewed);