Using the provided thread class show a list of the 3 most


PHP - Array & Thread

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

ALSO replacing any banned words in the message variable for each thread with ****. The banned words are provided in a string $bannedWords.

HINT: Pay attention to what delimits the words, not the words themselves.

Add your code to threadlist.php. Test your script by running:

php threadlist.php
threadlist.php

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Using the provided thread class show a list of the 3 most
Reference No:- TGS02887274

Expected delivery within 24 Hours