RE: [PHP] Characters counting
| From: | Jack Dempsey | Date: | Wed, 18 Apr 2001 19:27:36 +0000 |
| Subject: | RE: [PHP] Characters counting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49249@lists.php.net to get a copy of this message | ||
What exactly do you need?
If you have a variable that contains a string, you can do
echo substr($var,0,150)
to print the first 150 characters...
or, are you trying to limit the amount in the mysql query? I believe you
have to get the whole result then limit it in php, but others might know
better about that...
-jack
-----Original Message-----
From: Jorn van Eck [mailto:Jorn.van.Eck@iie.nl]
Sent: Tuesday, April 18, 2000 3:24 PM
To: php-general@lists.php.net
Subject: [PHP] Characters counting
Hi there,
Does someone know how to display for example150 characters from a $ set by
MySQL?
--
Jorn van Eck
Student Information Engineering
Almere
Tel: +31 614430902
E-mail: Jorn.van.Eck@iie.nl
Website: http://www.iie.nl/~eck13
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net