Jump to content

[SOLVED] Limiting character strings....


spikypunker

Recommended Posts

Ok, i've got a lot of advice and help from this board, so this latest obstacle i tried to do myself completely but have failed many many times!!

 

All i want to do is take a string from my mysql, then display only the first say, 64 characters (including spaces) on the page. I've tried many ways and it's bever worked.

 

I thought i could simply, take the $string then do a kinda, string chunk_split ( string $body [, int $chunklen [, string $end ]] )

 

I've tried many differnet variations and played around with what i could find online, but dont think my understanding is good enough. Can anyone help me out?

 

You dont have to solve it for me, maybe some help on how to solve it myself?

 

Kind Regards, Chris

 

Link to comment
https://forums.phpfreaks.com/topic/178034-solved-limiting-character-strings/
Share on other sites

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.