make first character of every word uppercase with php

Document Sample
make first character of every word uppercase with php Powered By Docstoc
					<?php

        $str = "hello world";

      // make first character of every word upper case and assign in new
variable
      $new_str = ucwords($str);

        // this will print "Hello World"
        echo $new_str;

?>

				
DOCUMENT INFO
Shared By:
Tags: ucwords
Stats:
views:5
posted:6/9/2012
language:English
pages:1
Description: make first character of every word uppercase with php