PHP || 2019 Old Paper Solutions

Q.No 11 <!DOCTYPE html> <html> <head> <title></title> </head> <body> <?php function isInList($listOfCountries, $searchValue){ $countries= $listOfCountries; $value= $searchValue; if(in_array($value, $countries)){ echo $value .”is in the list”; } } $countryList= array( “Nepal”, “India”, “China”, “Bangladesh”, “Bhutan”, “Maldives”, “Germany”); isInList($countryList, “Nepal”); ?> </body> </html>   Q.No 12 <!DOCTYPE html> <html> <head> <title>Insert CSV file</title> </head> <body> <?php $db […]

Continue Reading