php practicals
php practicals
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