Skip to content

Latest commit

 

History

History
73 lines (64 loc) · 2.97 KB

n4aa.md

File metadata and controls

73 lines (64 loc) · 2.97 KB

Stars Badge Forks Badge Pull Requests Badge Issues Badge GitHub contributors Visitors

Don't forget to hit the ⭐ if you like this repo.

PHP: Fundamentals

Set A

  1. a) <?php
  2. c) PHP: Hypertext Preprocessor
  3. a) echo
  4. a) Using the assignment operator (=)
  5. a) With a semicolon (;)
  6. a) .
  7. a) //
  8. a) strlen()
  9. a) 15
  10. a) $fruits = array("Apple", "Banana", "Orange");
  11. a) By using square brackets [] and the index number
  12. b) Odd
  13. a) include()
  14. a) define("PI", 3.14);
  15. a) session_start()
  16. a) $_GET["param"]
  17. d) $_COOKIE
  18. a) header("Location: newpage.php");
  19. b) 510
  20. a) mysqli_connect()
  21. a) To prevent SQL injection attacks
  22. a) mysqli_num_rows()
  23. a) mysqli_close()
  24. a) It's a fruit.
  25. a) Using try...catch blocks
  26. c) To initialize the object's properties and perform setup tasks
  27. a) $object = new ClassName();
  28. a) Hello, John
  29. a) By using the :: operator
  30. a) It allows access to the property or method from anywhere
  31. c) 15
  32. c) Using the fgets() function
  33. a) To check if a file or directory exists
  34. a) 5
  35. a) trim()
  36. b) 11
  37. a) To iterate over elements in an array or collection
  38. a) empty()
  39. b) Hello PHP
  40. d) To add elements to the end of an array
  41. b) 15
  42. a) To split a string into an array
  43. b) 9
  44. b) To format a date and time string
  45. a) Adult
  46. a) To set HTTP headers for the response
  47. a) 5
  48. a) To convert a PHP array or object into a JSON string
  49. a) Color found!
  50. a) To filter and sanitize user input data

Contribution 🛠️

Please create an Issue for any improvements, suggestions or errors in the content.

You can also contact me using Linkedin for any other queries or feedback.

Visitors