hello i was wondering what is the best way to limit the amount of words to be displayed.
for instace if i have a title that has five words and i only want to have a limit of three, how would i go about doing that?
Try using the substr() function to display the substring of the title....
You could use split();
$titl = "The Dog and The Cat"; // (for example) $title = split(' ', $titl); // Separates the words echo $title[0], $title[1], $title[2];
not sure, but hey