scarhand Posted January 27, 2011 Share Posted January 27, 2011 My current code (which works): <?php $body = explode("\n", $body); $body = array_slice($body, 3); $body = implode("\n", $body); ?> Is there a better way of doing this, so I dont have to explode and implode an array just to accomplish this? Quote Link to comment Share on other sites More sharing options...
litebearer Posted January 27, 2011 Share Posted January 27, 2011 substr? Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted January 27, 2011 Share Posted January 27, 2011 preg_replace? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.