Home ›
php get last item in an arrayphp get last item in an array
Submitted by Benjamin Melançon on December 4, 2007 - 9:54am
Untested:
$sys_name = current(end(implode($path)));
Resolution
More like this
- JSON (JavaScript Object Nugget) to PHP array
- Making changes to a nested array that may have arrays or strings in some values
- Always show N number of items when showing items in sets of N
- Does FeedAPI re-import a feed item if its node has been deleted?
- Having the top-level menu items not be links (for use with dropdown menus)


Comments
Post new comment