How can I show only latest news using PHP?

Hi there! I have a news section on index page. What should I write on php to show only 4 latest news?

5th Nov 2021, 3:15 PM
Nelly Spitsyna
Nelly Spitsyna - avatar
1 Answer
According to me, You should link the code with a news site.
11th Nov 2021, 1:34 PM
Ananya | Inactive |
Ananya | Inactive | - avatar