Jump to content

Recommended Posts

Posted (edited)

Hello All,

I have a very simple PHP script and I would like to "extract" or print or echo only the first letter of my variable. Is this possible ?

By exemple let's say my variable $_POST['profil'] return my first name, martin, I would like to have only the first letter so thaht would be the "m" in that case.

Thanks

-Martin

Edited by army20

Posted

Do you have any idea how I may echo the same vaariable using all lower case

Input is : VaRIaBle

Output needed: variable

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...