Question: PHP - Array Using the provided Thread class, show a list of the 3 most recent visible threads sorted to show the most recently created
PHP - Array
Using the provided Thread class, show a list of the 3 most recent visible threads sorted to show the most recently created threads first. Print a JSON response with status code 200 and an array of threads with threadid, title, message and timeposted fields.
HINT: You can nest an array within an array in PHP
Add your code to threadlist.php. Test your script by running:
php threadlist.php
threadlist.php
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
