0% found this document useful (0 votes)
3 views2 pages

Assignment No 2 and 3

The document outlines a series of assignments related to PHP programming, covering topics such as arrays, functions, string manipulation, object-oriented programming concepts like inheritance and polymorphism, and creating PDF documents. Each assignment includes specific tasks such as writing PHP scripts, explaining functions, and demonstrating various programming concepts with examples. The assignments are structured to enhance understanding of PHP's capabilities and its application in web development.

Uploaded by

mahekarekar20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Assignment No 2 and 3

The document outlines a series of assignments related to PHP programming, covering topics such as arrays, functions, string manipulation, object-oriented programming concepts like inheritance and polymorphism, and creating PDF documents. Each assignment includes specific tasks such as writing PHP scripts, explaining functions, and demonstrating various programming concepts with examples. The assignments are structured to enhance understanding of PHP's capabilities and its application in web development.

Uploaded by

mahekarekar20
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Assignment No 2

1) What is array? How to store data in array?


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) Explain Indexed array and associative arrays with suitable example.
6) Write a PHP program to (i) Calculate length of string
i. (ii) Count number of words in the string
7) State the use of strlen(),strpos() &strrev().
8) Explain multi-dimensional arrays.
9) Differentiate between implode and explode functions.
10) Explain functions. List its types.
11) State the use of str-word-count along with its syntax.
12) Write a program to create PDF document in PHP.
13) Explain following string functions with example
a) Strreplace
b) ucwords
c) Strlen
d) strtoupper
14) List any four strings functions with use..
15) Explain array-flip and explode function with syntax.
16) Explain following methods imagecopyresized
17) Explain how to implement multidimensional array in php
18) Display the given test ‘this is server side coding using php’ in PDF using PHP.
19) Explain following functions types with example
Anonymos function ii )variable function
Assignment No- 3

1) Define Inheritance. List types of inheritance.


2) Define Introspection and explain it with suitable example.
3) Explain method overloading with example.
4) Write PHP program for cloning of an object.
5) Create a class as “Percentage” with two properties length & width. Calculate area of
rectangle for two objects.
6) Define Introspection and explain it with suitable example.
7) Write PHP program for cloning of an object.
8) Write a program to demonstrate concept of inheritance in php. Illustrate class inheritance
in PHP with example.
9) Define serialization and explain it with suitable example.
10) Explain classes and object creation.
11) Explain constructor and destructor in PHP or Demonstrate __--construct() and __destruct()
in PHP
12) Develop a PHP program for overloading.
13) Explain method overriding with example .
14) Explain interface with example
15) Define class with syntax and example.
16) state application of serialization. Illustrate with example.
17) Explain clone ,class exists get parent class.
18) Explain trait with example.
19) Explain abstract class with example
20) Explain final class and final method with example
21) Explain this pointer with example.
22) Explain concrete class with example.

You might also like