Vineet Kumar Saini

Vineet Kumar Saini

  • NA
  • 10.4k
  • 7.4m

Make first character in uppercase of an array element in PHP

Sep 18 2012 9:49 AM
Hi friends

I have a problem, problem is that I have an array in php like as :


$arr=array("ram","mohan","shyam","vineet");


I want to first character of every word will be in upper case ? Please tell me anyone ,how to do this ?

Please help me ?





Thanks

Answers (4)