0% found this document useful (0 votes)
2 views

PHP Q_B

The document outlines various questions related to PHP programming, including advantages, syntax, data types, arrays, and functions. It also includes programming tasks such as writing loops and using specific functions. Additionally, it covers concepts like variable declaration, operators, and the use of string functions.

Uploaded by

Omkar Gavade
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

PHP Q_B

The document outlines various questions related to PHP programming, including advantages, syntax, data types, arrays, and functions. It also includes programming tasks such as writing loops and using specific functions. Additionally, it covers concepts like variable declaration, operators, and the use of string functions.

Uploaded by

Omkar Gavade
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

2M

1. List any four advantages of PHP.

2. State the use of str_word_count along with it’s syntax.

3. State the use of ‘$’ sing in PHP.

4. list different types of arrays.

5. State difference betn for & foreach.

6. What is array? How to store date in array.

7. Write syntax of PHP with example.

8. List bitwise operators in PHP.

9. How to write a PHP document

10. How to delete element from an array.

11. How to use flip function in PHP.

12. Explain print and echo function in PHP

13. Write syntax of for each loop.

4M

1. Write a program using foreach loop.


2. Explain indexed and Associative array with suitable example.
3. Differentiate between implode & explode function.
4. Explain any three datatypes used in PHP.
5. Explain different loops in PHP.
6. Explain the following string functions with example
1. Str_replace() 3. ucwords()
2. Strlen() 4. strtoupper()
7. Explain function list it’s types
8. Explain the following terms
1. Variable 2. Datatypes
3. Constant 4. Operators
9. Develop a PHP program without using string function
a) To calculate length of string.
b) To count the number of words in string.
10. Write a program using do_while loop.
11. Implement any three data types used in PHP with illustration.
12. Write rules for declaring PHP variables.
13. Describe static local and global variable with example.

You might also like