0% found this document useful (0 votes)
15 views

php practicals

The document contains a list of PHP programming tasks, including calculating the highest number among three numbers, using logical operators, checking if a number is positive or negative, and creating various forms and applications. It also covers concepts like associative and indexed arrays, functions (parameterized, anonymous, and variable), inheritance, constructors, serialization, introspection, and session management. Additionally, it includes tasks for creating a simple calculator and managing cookies.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

php practicals

The document contains a list of PHP programming tasks, including calculating the highest number among three numbers, using logical operators, checking if a number is positive or negative, and creating various forms and applications. It also covers concepts like associative and indexed arrays, functions (parameterized, anonymous, and variable), inheritance, constructors, serialization, introspection, and session management. Additionally, it includes tasks for creating a simple calculator and managing cookies.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 29

1) Write a PHP program to calculate Highest number among three numbers.

1
2) Write a program to make the use of logical operators.

2
3) Write a program to check no is positive or negative.

3
5) Write any program using if condition with foreach loop

5
6) Write a program to display pyramids of star/patterns using increment/ decrement. * **
*** **** ***** * ** *** **** ***** * ** *** **** *****

6
7) Write a program to print first 30 even numbers. (Using while, do…while)

7
8) Develop a program to using Associative array.

8
9) Develop a program to using Indexed array.

9
10) Write a program to demonstrate parameterized function

10
11) Write a program to demonstrate anonymous function.

11
12) Write a program to demonstrate Variable function.

12
13) Write a program to implements inheritance.

13
14) Write a program to demonstrate parameterized constructor.

14
15) Write a program to demonstrate default constructor.

15
16) Develop a PHP code for serialization.

16
17) Develop a PHP code for introspection.

17
18) Write a PHP program that demonstrate form element (input elements).

18
19) Write a PHP program that demonstrates passing data using GET method.

19
20) Write a PHP program that demonstrates passing data using POST method.

20
21) Write a program to create a session, to set a value in session, and to remove
data from a session

21
22) Write a PHP code to find greatest of two numbers. Accept numbers from
users.

22
23) Create Customer form like Customer name, Address, mobile no, item purchase, Amount
using different form input element & display user inserted values in new PHP form

23
24) Create Employee form like Employee name, Address,
Mobile no, Date of birth, Post & Salary using different form
input element & display user inserted values in same PHP
form.

24
25) Write a program to make simple calculator web application
that takes 2 numbers and an operator (+, -, *, /, %) from an HTML
page and returns the result page with the operation performed
on the operands.

25
26) Write a program to create, modify and delete a cookie.

26
27

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy