Add an array as post content dynamically

It depends on what type of data your array contains. But you would need to first loop your array; and create a valid string for passing into the post_content argument.

For example, if your array consisted of text strings:

$newArray = array( 'test_1', 'test_2', 'test_3' );
$text="";

// Loop the array and create a text string
foreach( $newArray as $string ) {

    $text .= $string . ' | ';
}

Now you can insert the text into the post content.

$new_post = array(
    'post_type'=>'post',
    'post_title'=>"New post created Programmatically",
    'post_content'=> $text
);
wp_insert_post($new_post);