Link to home
Start Free TrialLog in
Avatar of Julian Matz
Julian MatzFlag for Ireland

asked on

Strings

Hello!

I'm looking for the function to get the first x_number of characters from a string...

For example:

The string "This string of text is a little bit too long." should be displayed as:
"This string of text is..."
ASKER CERTIFIED SOLUTION
Avatar of b0lsc0tt
b0lsc0tt
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Julian Matz

ASKER

Hi b0lsc0tt,

Thank you for the quick answer! Exactly what I was looking for but had trouble finding it in the manual...
http://php.net/manual/en/function.substr.php

-Julian.
julianmatz,

Glad I could help.  Thanks for the fun question, grade and points.