How can I capitalize the first letter of each word?

前端 未结 20 2535
暖寄归人
暖寄归人 2021-01-14 12:31

I need a script in any language to capitalize the first letter of every word in a file.

Thanks for all the answers.

Stackoverflow rocks!

20条回答
  •  Happy的楠姐
    2021-01-14 12:32

    php uses ucwords($string) or ucwords('all of this will start with capitals') to do the trick. so you can just open up a file and get the data and then use this function:

    
    

    Edit, my code got cut off. Sorry.

提交回复
热议问题