Jump to content

Recommended Posts

Posted

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.

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
×
×
  • Create New...