Convert String into Proper Case






<html>
<body bgcolor='#cccfaa'>
<form name='frm1' method='post'>
Enter any String:<input type='text' name='t1' />
<input type='submit' value='Proper case' />
</form>
</body>
</html>



<?php
if(isset($_POST['t1']))
 {
  $st=$_POST['t1'];
echo "String in  Proper Case:<b> ";
print (ucwords(strtolower($st)));
}
?>

No comments:

Post a Comment

Thanks for visiting my Blog!

Have a Question ? Need Help in College Assignments, Need Code that is not available here? Just leave a comment & get your code instantly.

Tips to Enhance Your Blog