Jump to content

Archived

This topic is now archived and is closed to further replies.

essjay_d12

Cutting a variable to 10 characters

Recommended Posts

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 to



Thanks

d

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.