Which PHP function can be used to convert a string to lowercase?

  • strtolower()
  • toLowerCase()
  • strLower()
  • convertToLower()
To convert a string to lowercase in PHP, you use the strtolower() function. It's a built-in function that does this conversion.

You are implementing a feature where users can upload multiple documents at once. What changes would you make in the HTML form to handle multiple file inputs?

  • Use the multiple attribute
  • Create multiple file input fields
  • Use JavaScript to clone the input field
  • Use AJAX for file uploads
To allow users to upload multiple documents at once, you should use the multiple attribute on a single file input field. This enables users to select multiple files in a single input.

When handling multiple form fields, which HTML attribute allows users to select multiple values in an input field?

  • size
  • multiple
  • array
  • selected
The multiple attribute in an HTML