The document outlines various topics related to PHP, including syntax, control structures, variable types, and operators. It includes questions and tasks that cover features of PHP, differences between loops, and practical programming exercises. Additionally, it addresses the advantages of PHP and the use of comments and functions.
The document outlines various topics related to PHP, including syntax, control structures, variable types, and operators. It includes questions and tasks that cover features of PHP, differences between loops, and practical programming exercises. Additionally, it addresses the advantages of PHP and the use of comments and functions.
2. Write features of PHP. 3. "Whole PHP code (script) is case sensitive" Justify true or false. 4. Give difference between foreach and for statement. 5. What are the two types of comment tags? 6. Example of static, local and, global variable. Explain it. 7. How can we use while. do..while & switch statement ? 8. How we use else and elseif statement in PHP? 9. Why PHP is known as Scripting language? 10.Explain identical operator 11.Explain the bitwise operator with suitable example. 12.What is the difference between ++$j and $j++? 13.How do you convert one variable type to another (say, a string to a number)? 14.Difference between variables and constants in PHP. 15.Explain in detail about Control Structures in PHP. 16.Why var_dump( ) is preferable over print_r() ? 17.What is type juggling ?. 18.Write any 5 web server name. 19.Write a Script to construct the following pattern, using a nested for loop. * ** *** **** 20. Write a PHP script using nested for loop that creates a chess board .Use table width=”270px” and take 30px as cell height and width. 21. Write PHP program to print factorial of number. 22. Write PHP program to print reverse of number. 23. Describe advantage of PHP. 24. Write syntax of PHP. 25. Write down rules for declaring PHP variable. 26. Define function. How to define user defined function in PHP ? Give example. 27. List any four advantages of PHP? 28. State the use of “$” sign in PHP. 29. Write a program using foreach loop. 30. State any 2 difference between for and for each. 31. Explain the use of break and continue statement. 32. List loop control structures. Explain any one loop control structure.