how to make first letter only captial using php.

how to make first letter only captial using php.

how to make first letter only captial using php.

Php has a little function call ucfirst($string);

where you can make sure the first letter of the string is a captial. Please not though that this will only work if the string is lower case, it only changes the first letter no others so if your string is all captials you won't notice a difference.

If you want to change captials to this then you have to add a little more

<?php

$string = 'HELLO WORLD!';

echo ucfirst(strtolower($string)); // Hello world!

?>

HOW TO GET MORE CUSTOMERS

How to stop paying council tax 

I'm having a clear out, new things added daily

How to stop paying council tax

Stunning cushion 40cm x 40cm...

Stunning cushion 40cm x 40cm Constellations of thoughts


£24.00

Matt Handcock Pin cushion...

Matt Handcock Pin cushion


£3.99

Wine bottle gift bag/ holder...

Wine bottle gift bag/ holder linen new hand made


£3.00

Bean Bag door stop - new ...

Bean Bag door stop - new


£4.00

New Glasses Holder...

New Glasses Holder


£4.00

New Glasses Holder...

New Glasses Holder


£4.00

Stunning cushion 40cm x 40cm...

Stunning cushion 40cm x 40cm Constellations of thoughts


£24.00

Cleaner in Woking