How can you embed PHP code in web pages? Write a PHP program to illustrate the concepts of continue and break statements.
Describe variables and missing parameters with examples. Write a PHP program to implement functions containing parameters by reference.
How can you create a database connection? Create a PHP form that includes text field, password field, radio button elements. Now write a function to insert the data in the fields into a database table.
Attempt any Eight questions
[8x5=40]How can you remove and insert elements in an array? Explain by writing a PHP program using array_splice() for inserting and removing elements in an array.
How is the approximate equality of two strings done in PHP? Write a program to demonstrate it.
Write a PHP program to demonstrate the concept of inheritance.
What is a cookie? Write PHP program to create cookie.
Define error reporting and error suppression with examples.
Write a PHP program to write on a file.
Write a PHP program to illustrate the use of exception handling.
Differentiate anonymous function from variable function.
Write a PHP program to access properties and methods of a class.