Getting all post details of a post type in wordpress?

$posts_details);= get_posts( array( ‘post_type’ => ‘post’ ) );  // Specify the post type here, eh: shop_orders, page, etc..

print_r( $posts_details);