How to insert dynamic content into posts

I'm currently using this plugin http://wordpress.org/extend/plugins/automatic-featured-image-posts/ which creates batches of posts from uploaded images

I'm also using this code here to generate the default content for every new post

add_filter( 'afip_new_post_content', 'diww_default_post_content' );
function diww_default_post_content() {
$content = "<iframe src=></iframe>";
return $content;
}

Now I have a php array of URL's which I want to insert into the src for each post. Is it possible via some loop or sequential manner insert each URL into each post sequentially?

e.g.

URL[0] -> Post[0]
URL[1] -> Post[1]
URL[2] -> Post[2]

and so on.

Thanks