0% found this document useful (0 votes)
12 views16 pages

Document

The document outlines two PHP assignments consisting of various tasks, including explaining PHP features, writing scripts for mathematical operations, and discussing concepts like loops, cookies, sessions, and form submissions. It also requires the implementation of programs for string manipulation, employee records display, and user login functionality. Additionally, it covers differences between constants and variables, types of arrays, and client-server scripting distinctions.

Uploaded by

kanowjiav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views16 pages

Document

The document outlines two PHP assignments consisting of various tasks, including explaining PHP features, writing scripts for mathematical operations, and discussing concepts like loops, cookies, sessions, and form submissions. It also requires the implementation of programs for string manipulation, employee records display, and user login functionality. Additionally, it covers differences between constants and variables, types of arrays, and client-server scripting distinctions.

Uploaded by

kanowjiav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 16

*Sub : PHP*

*Assignment No 01*

1. What are the features of PHP.

2. Write a PHP script to find the sum of digits of a number.

3. Explain for loop and foreach loop with example.

4. Explain cookies in PHP.

5. Explain any two Built-in Array functions in PHP

6. Write a PHP script to display a table of numbers?

7. Write any two Built-in functions of String with example.

8. Write a code in PHP which accepts two strings from the user and displays
them after concatenation.

9. Write a PHP program to calculate the factorial of a number.

10. Write a PHP script to check whether a number is prime or not.

11. Explain the concept of sticky form with suitable example.

12. Explain Email id validation in PHP through regular expression.

13. Write a PHP program for arsort() function.

14. Write a PHP program to display records of employees with


fields(empid,empname,salary,dept).

15. Write a PHP program to create a login page and welcome user on the
next page.
*Assignment No 02*

1. What are differences between PHP constant and variable ?

2. Explain the syntax for each loop with an example.


3. What are the different types of arrays in PHP?
4. Explain methods to submit a form.
5. What is a session in PHP? Explain it.
6. Explain if …else statement in PHP using example.
7. Explain difference between client side scripting and server side scripting
8. Write a PHP program to calculate the area of circle and triangle.

9. Write a note on relational operators in PHP.


10. Explain Response and request objects in PHP
11. Explain introspection in PHP.
12. Explain function with default parameter in PHP using example.
13. Write a PHP script to accept the user’s name and display it on the next
page.
14. Write a PHP program to display following operations on string : i) String
concatenation ii) String comparison
15. Write a PHP program to display a multiplication table of entered values.

You might also like