Wondering how i can cut a string down to the last 15 lines ?
I assume you have the string in the array, so every line has its own array cell.
it's easy to do
$count=15; if ($count>count($array) { while($count--) $newarray=$array[count($array)-$count]; }