Jump to content

[SOLVED] Problm select first parts of variable


almightyegg

Recommended Posts

I have a bit of code that selects the first 5 words of a variable:

$short = join(' ', array_slice (explode(' ', $posmes['message']), 0, 5));

 

Works great, butI want it to select the first 30 Characters instead...How do I change it from words to characters??

Archived

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

×
×
  • Create New...

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.