Imp Questions
Imp Questions
1. Define associative array? Explain with suitable Example. Explain How it different
form indexed array.
2. Write PHP code to display largest number among three numbers.
3. How do you convert one variable type to another in PHP.
4. What is difference between echo and print() in PHP.
5. Implement a PHP program to display numbers from 1-10 in a sequence
using for loop.
6. Implement PHP script to sort any five numbers using array function
7. Explain any four string functions in PHP with example.
8. Define Array. State its example
9. Explain Indexed array and associative arrays with suitable examples.
10.Write a PHP program to i) Calculate length of string ii) Count number of words in
string.