php interview questions and answers for freshers

Basic  PHP  programming, Relational operators, Logical operators

List of if...else programming exercises

1. Write a  PHP  program to find maximum between two numbers.

2. Write a  PHP  program to find maximum between three numbers.

3. Write a  PHP  program to check whether a number is negative, positive or zero.

4. Write a Php program to check whether a number is divisible by 5 and 11 or not.

5. Write a PHP program to check whether a number is even or odd.

6. Write a PHP  program to check whether a year is leap year or not.

7. Write a PHP  program to check whether a character is alphabet or not.

8. Write a  PHP  program to input any alphabet and check whether it is vowel or consonant.

9. Write a  PHP  program to input any character and check whether it is alphabet, digit or special character.

10. Write a  PHP  program to check whether a character is uppercase or lowercase alphabet.

11. Write a  PHP  program to input week number and print week day.

12. Write a  PHP  program to input month number and print number of days in that month.

13. Write a  PHP  program to count total number of notes i