The issue is actually this, not the preg_match_all.
Code:
$p1 = "/BOT report (.*),(.*)/siU";
if (preg_match_all($p1, $console['chat'], $out1))
{
// Define variables for actions
$post_data = array();
$post_data['id'] = $out1[1];
$post_data['reason'] = $out1[2];
// More $post_data array vars here
}
The $out1[] vars always print as arrays despite my [1] offset. I dont see the point of a foreach here as there is usually only one line sent into the preg_match_all so I wanted to output the content as above.