Re: Anybody got a little spare time to help me out with a little OOP

From: Date: Sun, 01 Jun 2008 18:38:03 +0000
Subject: Re: Anybody got a little spare time to help me out with a little OOP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-274911@lists.php.net to get a copy of this message
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@yahoo.com> wrote in message news:266372.4889.qm@web31703.mail.mud.yahoo.com... > 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 > > > >

« previous php.general (#274911) next »