QUESTION 3 a) Write a PHP program to calculate the total mark from the variable Smarkl and Smark2. Create a function called Cal_TotalMarks() by passing these variables to calculate the total marks ....

I need the answer as soon as possibleQUESTION 3<br>a)<br>Write a PHP program to calculate the total mark from the variable Smarkl and Smark2.<br>Create a function called Cal_TotalMarks() by passing these variables to calculate the total<br>marks . Declare Stotal as a global variable to display the total mark outside the function.<br>b)<br>Write a PHP Program to find the length of a string and counts the number of words in a<br>string.<br>c)<br>Write the PHP code to open and read the first line of a file called

Extracted text: QUESTION 3 a) Write a PHP program to calculate the total mark from the variable Smarkl and Smark2. Create a function called Cal_TotalMarks() by passing these variables to calculate the total marks . Declare Stotal as a global variable to display the total mark outside the function. b) Write a PHP Program to find the length of a string and counts the number of words in a string. c) Write the PHP code to open and read the first line of a file called "webdictionary.txt". d) Describe the following file functions. i. fopen() ii. felose() iii. fgets() iv. file_exists() Write a PHP Code to create and display an associative array with the information shown as below in Figure 3. e) Product Code : 1001 Product Name : Iphone 13 Number of Products available : 15 Product Code : 1002 Product Name : Samsung Note 20 Number of Products available : 10 Figure 3: output

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here