Question: 5) Rewrite the following php documents after correcting the syntax errors. Find the PHP output of each of the following script and explain the meaning
5) Rewrite the following php documents after correcting the syntax errors. Find the PHP output of each of the following script and explain the meaning of the output? Sitems=['1100'=>'HP Laptop x12, i3', 'SN01'=>'Sony Laptop v15, i7','HP300' => 'HP Color Printer']; echo $_SERVER['REQUEST_TIME') . '
'; echo _SERVER['HTTP_HOST') . '
'; $n=sizeof ($items); echo "No of items: $n
"; foreach ($items as $k=>$v) { if ($k == '0100') continue; echo "Description:'HP Laptop x12, i3', 'SN01'=>'Sony Laptop v15, i7','HP300' => 'HP Color Printer']; echo $_SERVER['REQUEST_TIME') . '
'; echo _SERVER['HTTP_HOST') . '
'; $n=sizeof ($items); echo "No of items: $n
"; foreach ($items as $k=>$v) { if ($k == '0100') continue; echo "Description:
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
