truncating dilema
| From: | Nick Wilson | Date: | Thu, 13 Jun 2002 21:20:50 +0000 |
| Subject: | truncating dilema | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-102068@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi everyone,
I'm making an idiot proof news database for a client and do not want to
include a 'description' field. I had thought to return a truncated
version of the actual stories as a description.
It has just occured to me though that if I'm to list maybe 100 news
items with descriptions it means alot of memory right because i have 100
items containing:
date
title
text (could be any length)
I will use substr() in my php to format the descriptions but I thought
I'd ask here if anyone had a *better* suggestion?
Many thanks....
- --
Nick Wilson // www.explodingnet.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
iD8DBQE9CQyyHpvrrTa6L5oRAtJdAKClDX77zJsH5LUSkaRG0KP6DEpJ2wCeK9BC
/WpypUV5ygtcBN/hwogsBeg=
=s+ae
-----END PGP SIGNATURE-----