i have that code, and i want to limit the result to 10 max. how can i do that?
<?php
$actors = rtrim($movie_info[0]->actors, ", ");
if(stristr($actors, ",")) {
$actors = explode(",", $actors);
array_walk($actors, 'add_url_on_tags', '/actor');
echo ul($actors, array("class" => "genres2"));
echo '<div style="clear:both;"></div>';
}elseif(!empty($actors)) {
echo '<a href="/actor/'.url_title($actors).'">'.$actors.'</a><br />';
}else{
echo 'empty';
}
?>
thank for your help!