![]() |
Determine if this folder is the last level within that folder?
Good day,
I'm working on a script and this script list folder in a html list. Here is the code; PHP Code:
| - Folder 1 - Folder 2 | - Folder2.1 | - Folder3 The deal here is that I could go by CSS level of list but my problem is that sometime there is more subfolder yhat this example. Is there a way that I can tell the last level folder to be written in bold ? Thanks ! |
Use a for() loop in conjunction with count/sizeof(), and if $i < $count-1, you're on the last file.
|
| All times are GMT. The time now is 10:27 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0