Jump to content

Plucking the first letter of a word


Recommended Posts

I need to pull the first letter out of a word.

For example, if the word is "apple" I need the "a".

I could use string trim but I'm not going to know the word length ahead of time.

What's the best way to approach this? I could also use an array and pull out the first element but that seems like overkill.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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