I have this code for parsing RSS to HTML.
<?php
$channel_desc = $channel->getElementsByTagName('description')
->item(0)
->childNodes
->item(0)
->nodeValue;
I want to get only 150 characters from first description. How can I limit the length output?