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!

?> 


Trending right now

Foods to avoid during H pylori infection

Hide

Why Eating Butter Before Bed Could Transform Your Night

How to get more customers

Even Crap sells

Master the Art of Saying No Without Guilt

How to stop videos playing automatically in chrome

How to identify hot selling products on Ebay

Keep flies off your food this summer

Made to measure drawer organisers. Easy to install.

How to tie a tie

What Is Money and How It Is Just a Collective Illusion

How to remove inspyware from your laptop

Encouraging Messages from God

Why No One Should Ever Verify Their Details on Any Website

How to make sure facebook picks up the correct picture from a website

To get a free starter from pizza express simply enter this code

How to stop coughing quickly and easily

How do i edit a facebook album name in a group

Giving your bank details to Trustly through ebay

How to relieve cure a sore throat

How to stop text enhance pop ups showing on webpages.

People Do not Really Care And That is the Truth

How to copy a textarea contents to a clipboard

Delete Remove a file from your sever using php

Why are the vaccinated not actually vaccinated

What is the difference between Jam and peanut butter Joke on how i met your mother

Remove a tomato stain from clothes easily

Just a random notebook

Visited link to remain same colour

Stop paying council tax and remove yourself from their database

How to make first letter only captial using php.

Share







SubmitExpress.com