Professional Documents
Culture Documents
PHP Work
PHP Work
9. Using switch case write a write a PHP script with $word. If $word
contains T it displays “ you are teacher”, if S it displays” you are student”, if
G it displays “ you are a Guard”, otherwise “ you are visitor”.
10.Write a PHP script to display your age depending on the year of birth you
give.
11.Evaluate the following expression: $a= 7,$b=5; $c =($a<$b)?$a:$b; What
will be the value of $c?
12.Write a PHP script to display multiplication table of 7.
Page 1 of 1