Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Apr 3rd, 2012  |  syntax: PHP  |  size: 0.26 KB  |  views: 68  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php if (!empty($items)): ?>
  2.   <ul>
  3.   <?php foreach ($items as $item): ?>
  4.     <li><a href="<?php print $item['attr']['href']; ?>" title="<?php print $item['attr']['title']; ?>"><?php print $item['value']; ?></a></li>
  5.   <?php endforeach ?>
  6.   </ul>
  7. <?php endif ?>
clone this paste RAW Paste Data