Jump to content

[SOLVED] last value in array


legohead6

Recommended Posts

ok, i have a script that finds out a file name in a directory, then it echos it to the user, but the file may be in different sub directories or in the root, so i exploded it by / now i just need a function to get the last value of the array(which would be the direct file name). is there such a function? or do i need to use if emptys?

Link to comment
https://forums.phpfreaks.com/topic/87952-solved-last-value-in-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.