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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux