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!

?> 


👟
Tiny Steps Weight Loss Coach
1:1 Daily WhatsApp Coaching • £30/month
Start Your Transformation Today £30 / month
✅ Personalised Plans
✅ Daily Check-ins
✅ No Burnout Method
✅ Cancel Anytime

Trending right now

Why Blind Faith Leads to Catastrophe

Vodka Christmas cake recipe

Healing pneumonia with raw ginger

How to create a date array in php which come up with todays date selected

How to break out of a frame javascript html

Paper chain

What Is Money and How It Is Just a Collective Illusion

How to stop google chrome downloading automatically

How to make a drop down box submit a form

How to remove red wine stains from a carpet new or dried in

How to stop bailiffs from coming to your door

Does Salt and Water Cure Hayfever

How to get rid of an infestation of wasps or bees or actually any flying insects

We will transform any word or google docs document into a pdf sized applicable to create a amazonkdp

The art of forgiving people

How to get your child into rainbows brownies guiding scouts beavers when there is a waiting list

Why Speedy Lead Calls Skyrocket Your Success

Why Ditching the News Could Transform Your Mental Health

How I paid my HMRC tax bill with a promissory note

Why Your Prescription Drugs Might Be Hiding the Real Problem

Why Letting Go is the Key to Scaling Your Business

The only cough remedy that really works

How to tie a tie

ELECTRIC VEHICLE CHARGING POINT INSTALLATION CERTIFICATE

Where would a two year old hide a passport..

Forty five great places to leave your advertising material that will actually get read

How to relieve cure a sore throat

Repeat this thousands of times a day to put your life back on track

How to potty train a child in 3 days

List of Facebook groups that are good to advertise your business on in the UK

Learning to Love Yourself

How to unmark posting as spam on facebook

Share







SubmitExpress.com