Re: Anybody got a little spare time to help me out with a little OOP
| From: | Ryan S | Date: | Sun, 01 Jun 2008 15:15:36 +0000 |
| Subject: | Re: Anybody got a little spare time to help me out with a little OOP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-274909@lists.php.net to get a copy of this message | ||
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