Write a php recursive function to display the content of “sample.json” file in a table
The file content should display under the “Recursive” section as shown in the included picture.
It should display the sections from sample.json file in a table similar to that of “function processData($data)” Please take a look at “function processData($datat)” to understand how it’s functioning.
Write php function in “function processRecursive($data)” in the function.php file
You can use the “function processData($data)” for understanding
“function upload($filename, $dir)” reads the file and your recursive function in “function processData($data) displays the file.
I used “Visual Studio Code” as my edito
I used “XAMPP control Panel v3.2.4” running “Apache” and “MySQL” as server to run index.php
Do not wo
y about the “include($root. ‘/includes/header.php’)”,
“include($root. ‘/includes/menu.php’)” and “include($root. ‘/includes/footer.php’)” You should be able to import functions.php, index.php and lab4.css in your visual studio code or editor of choice and start working.