There is a variable $poststhat gives an array with many values.
foreach() used to output:
foreach($posts as $post) {
...
}
How to show only the first five values from $posts?
For example, if we have 100 values, this should give only five.
Thank.
source
share