$slider_arr = $obj->getSliderFunctions('listing', ''); if ($slider_arr != NULL) { foreach ($slider_arr as $key => $value) { echo "
  • "; echo 'slider-image1'; echo '
    ' . $value['tag'] . '
    ' . $value['heading'] . '
    ' . (($value['link'] != NULL) ? '' : '') . '
    ' . $value['description'] . '
    '; } } ?>