![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.php archiveRe: PHP Tokenize a String by its length
From: Geoff Berrow <blthecat@ckdog.co.uk>
Date: Sat Dec 31 2005 - 11:10:38 CET
Message-ID: <1136022722.493964.17770@g49g2000cwa.googlegroups.com> from
>I mean if I have a 2 page content - just I want to display only 4 lines
I wrote this function to do just that. It has the added feature that it
$string is the long string to truncate
<?php
//example usage
-- Geoff Berrow (put thecat out to email) It's only Usenet, no one dies. My opinions, not the committee's, mine. Simple RFDs http://www.ckdog.co.uk/rfdmaker/Received on Tue Jan 3 03:50:47 2006 |