PHP Text probl.

Ask about a PHP problem here.
Post Reply
irfanh94
Posts: 26
Joined: Thu May 05, 2011 7:43 pm

PHP Text probl.

Post by irfanh94 »

How to make this: if is the post bigger than exmp 250 characters to add after text "..."
libeco
Posts: 104
Joined: Sat May 07, 2011 9:56 am

Re: PHP Text probl.

Post by libeco »

If your text comes from a database, make sure you only select a maximum of 250 characters. In PHP use strlen to check the string length.
Post Reply