There is a variable $posts
, which gives an array with many values.
foreach()
is used for output:
foreach($posts as $post) {
...
}
How to show only five first values from $posts
?
Like, if we have 100 values, it should give just five.
Thanks.