essjay_d12 Posted March 29, 2006 Share Posted March 29, 2006 How do I cut a variable down to 10 characters only, no matter how long it is originally?so...$test = 'Welcome to the Jungle';would only print out....Welcome toThanksd Quote Link to comment Share on other sites More sharing options...
Prismatic Posted March 29, 2006 Share Posted March 29, 2006 [code]$ShortString = substr($LongString, 0, 10);[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.