PHP help. Breaking up a string where there is capitals. Please help.?

Jason

New member
I need to take a string that has camel back case and break it up into sections seperated by capitals. For example.

lastName needs to be broken up and stored in an array as something like
$arr[0] = "last"
$arr[1] = "Name"

So i can convert the first letter of each value, add a space between the values so the end result will be

Last Name

Please help, the functions i've tried would clip the delimiter and the array would end up holding
$arr[0] = "last"
$arr[1] = "ame"

Please help, thanks!
Wow that is just brilliant Tenax! Ty!
 
Back
Top