On Mon, 06 Oct 2003 09:05:13 GMT, "Andrew Banks"
<ba****@nospamblueyonder.co.uk> wrote:
Could anyone identify why the following script is giving me various errors
under php 4.3.3. It worked fine on previous versions.
Post the 'various errors'.
function cut_string($string,$wordnum,$trail)
{
$string_arr=explode(" ",$string);
for($i=0;$i<$wordnum;$i++)
{
$re_string.= " ".$string_arr[$i];
}
$str= $re_string.$trail;
print $str;
}
Compiles fine here under 4.3.3. If it's giving errors at runtime, post
examples of data that cause them, and the errors themselves.
--
Andy Hassall (an**@andyh.co.uk) icq(5747695) (
http://www.andyh.co.uk)
Space: disk usage analysis tool (
http://www.andyhsoftware.co.uk/space)