graphScript.php changing implode and explode