Sie sind auf Seite 1von 1

KristuJyoti College of Management And Technology

MCA S4 PHP LAB CYCLE 2013


1.
2.
3.
4.
5.
6.
7.
8.

Write a PHP program to reverse a number.


Write a PHP program to check whether a number is palindrome or not
Write a PHP program to generate Fibonacci series up to n.
Write a PHP program to check whether a string is palindrome or not.
Write a PHP program to display number in words. [ 123 as one two three]
Write a PHP program to sort numbers.[ range and numbers should be entered by the user]
Write a PHP program to insert an item in a specified position in an array.
Write a PHP program to search for a particular item in an associative array. [Directly initialize the values.
book name as index and price as value. When the book name is entered, corresponding price should be
displayed.]. Display the elements of the associative array[ book name as index and price as value] in tabular
form
9. Write a PHP program to display the mark list of a requested student [name, marks of three subjects, total]
using multi-dimensional array.
10. Write a PHP program to extract portion of a string.
11. Write a PHP program to split words of a string (with white space) .
12. Write a PHP program to replace some portion of a string str_replace() and substr_replace().
13. Write a PHP program to accept some comma separated strings, split them and display in ascending order
using Regular expression.
14. Write a PHP program to design a login page using session]
15. Write a PHP program to get the server information using $_SERVER
16. Write a PHP program to validate a date entered by the user.

17. Write a PHP program to validate an integer.


18. Write a PHP program to validate an email id.
19. Write a PHP program to display the current date in different formats (28/10/2013 , Mon-Oct-2013
, Monday 28th of October 2013 )
20. Write a PHP program to manage cookies.

21. Create a query string with user input values and string handling functions.
22. Program to upload a file and store it on the server.
23. Write a PHP program to create a new Student database and table and insert values into it.
24. Write a PHP program to accept Employee information such as EmpNo, Name,Designation, Basic Salary
and display the list of employees in the same page.[Net Pay should be calculated as
NetPay=BasicSal+hra+da-deductions.]
25. Write a PHP program to edit salary details of the selected employee from the list of employees.
26. Create a login page, create manager users and assign some employee to each manager. Verify the username
and password and display the details of corresponding employees to the user.Create appropriate classes for
database access.
27. Write a PHP program to handle file operations. [Create a file, Write to file, Read from the file.]

28. Using PHP and MySQL, develop a program to delete the employee details in a table and display
employee details in a table format.
29. Write a program todemonstrating the concept of constructor and destructor using object oriented
programming.
30. Write a program to demonstrate inheritance in PHP

Das könnte Ihnen auch gefallen