I am embarrassed to ask such a simple question but I haven't coded much in the last few years and I forgot a few things. I would like to abbreviate a string such as "Internal Computing Department" to ICD. Can you help?
I looked for the source code for ucfirst and I did not find anything helpful. I assume I could use a regular expression with a ^ to get the first Char and then | to get chars after a space.
Thanks