The document outlines various topics related to PHP programming, including arrays, functions, string manipulation, object-oriented concepts, sessions, cookies, and MySQL database operations. It provides questions and tasks for each chapter, such as creating PHP scripts, defining functions, and developing programs for specific functionalities. The content serves as a guide for understanding and practicing PHP programming concepts and database interactions.
The document outlines various topics related to PHP programming, including arrays, functions, string manipulation, object-oriented concepts, sessions, cookies, and MySQL database operations. It provides questions and tasks for each chapter, such as creating PHP scripts, defining functions, and developing programs for specific functionalities. The content serves as a guide for understanding and practicing PHP programming concepts and database interactions.
2. Define function. How to define user defined function in PHP ? Give example. 3. Write PHP script to sort any five numbers using array function. 4. Explain any four string functions in PHP with example. 5. State the use of strlen() & strrev(). 6. Explain associative and multi-dimensional arrays. 7. Differentiate between implode and explode functions. 8. State user defined function and explain it with example. 9. Write a program to create PDF document in PHP. 10. List different types of arrays. 11. Develop a PHP program without using string functions : (i) To calculate length of string (ii) To count the number of words in string.
Chapter 3:-
1. List types of inheritance
2. Define Introspection and explain it with suitable example. 3. Explain method overloading with example. 4. Create a class as “Percentage” with two properties length & width. Calculate area of rectangle for two objects 5. Define serialization and explain it with example. 6. Describe inheritance, overloading, overriding & cloning object. 7. Explain the concept of constructor and destructor in detail. 8. Write a PHP program on Introspection 9. Develop a PHP program to create constructor to initialize object of class. 10. Write a PHP program on multiple inheritance using traits?
Chapter 4:-
1. How can we destroy cookies ?
2. How to create session variable in PHP ? 3. Write difference between get( ) & post( ) method of form (Any four points). 4. Define session & cookie. Explain use of session start. 5. How do you validate user inputs in PHP ? 6. Define GET & POST methods. 7. Describe form controls – text box, text area, radio button, check box, list & buttons. 8. WAP to create registration form using Button, Radiobutton, textbox, textarea, checkbox? 9. WAP to Create and delete Cookie in PHP?
Chapter 5:-
1. List any four data types in MySQL.
2. Write update & delete operations on table data. 3. How do you connect MySQL database with PHP. 4. Develop a PHP program to (i) Enter data into database (ii) Retrieve and present data from database. 5. Develop a program to connect PHP with MySQL. 6. Define MySQL. 7. Develop a program to create a table student. 8. Develop program to perform insert and delete operation.