If you want to know what $this-> means then take a look at http://www.tonymarston.net/php-mysql/databaseobjects.html Other articles on OOP with PHP are: http://www.tonymarston.net/php-mysql/databaseobjects2.html http://www.tonymarston.net/php-mysql/dateclass.html http://www.tonymarston.net/php-mysql/good-bad-oop.html http://www.tonymarston.net/php-mysql/hero-or-heretic.html http://www.tonymarston.net/php-mysql/oop-for-heretics.html http://www.tonymarston.net/php-mysql/what-is-oop.html http://www.tonymarston.net/php-mysql/object-relational-mappers-are-evil.html -- Tony Marston http://www.tonymarston.net http://www.radicore.org "Ryan S" <genphp@xxxxxxxxx> wrote in message news:266372.4889.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx > Hey! > > <snip> > Here would be my incarnation of this script > <?php > $sample_string="From http://www.ezee.se/ The UK police are by far one of > the most open to being greedy and corrupted by their afore mentioned > greed, case and point: the hundreds of extra speed cameras that are put > in place with an idea of making more money rather than public safety, > cameras that get fines that are around 100 million pounds per year! > Heres one example.."; > > $break = 12; > > $words=explode(" ", $sample_string, $break); > > $words[($break-1)] = "... read more inside!"; > > echo join(' ', $words); > </snip> > > > > > > Thanks for replying, but how and where do I put that into the script? all > that "this->" stuff is confusing.... > > Cheers! > R > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php