So I have split up a field of text into an array of strings like the following:
$body_words = explode(" ", $msg_body);
But now I want to take a portion of this array, say $body_words[3] through the end of the array and put them back together into a string, leaving out the beginning of the array like $body_words[0], [1], and [2]. I havent found a good solution yet for this and would really appreciate the help.
Neither of these will do what you want. The first removes the 3rd element and then rejoins, while the second removes the last item and then joins.
What you want is array_slice.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php