DarrenPower
IS-IT--Management
Hi,
I have a script which takes the file path and builds a breadcrumb, capitalising the first letter of each word in the path. I'm actually looking to capitalise the first letter of the first word in each directory/filename, rather than every word. Could anyone shed any light on how I may be able to go about this at all please?
i.e.
Current - /about-us/what-we-do becomes About Us > What We Do
Desired - /about-us/what-we-do becomes About us > What we do
I have a script which takes the file path and builds a breadcrumb, capitalising the first letter of each word in the path. I'm actually looking to capitalise the first letter of the first word in each directory/filename, rather than every word. Could anyone shed any light on how I may be able to go about this at all please?
i.e.
Current - /about-us/what-we-do becomes About Us > What We Do
Desired - /about-us/what-we-do becomes About us > What we do