Jump to content

PHP FUNCTION TO capitalize VARs


Orionsbelter

Recommended Posts

Is there a function to capitalize a variable?

 

such as;

<?php

$username= capitalize($_POST['username']);

?>
I do understand that i can capitalize the word in CSS however i need this to be capitalize before it goes into the database and not capitalize the string form the database. 

Thanks for all your help

Link to comment
https://forums.phpfreaks.com/topic/190490-php-function-to-capitalize-vars/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.