To ensure that PHP scripts don't have syntax errors, you can use the ________ command-line option.
- -l (or --syntax-check)
- -s (or --strict-errors)
- -e (or --error-check)
- -p (or --parse-error)
The -l (or --syntax-check) option checks PHP scripts for syntax errors without executing them, aiding in early error detection.
Loading...
Related Quiz
- How can you modify the lifetime of a cookie in PHP?
- You have a PHP script and you need to perform some initialization when an object of a class is created. How would you do this using a constructor?
- You can use Regular Expressions in PHP to validate email addresses.
- You should use the move_uploaded_file() function in PHP to move the uploaded file to a desired directory.
- Consider a scenario where a user provides input that your PHP script tries to decode as JSON, but it's not valid JSON. Which function can help you identify the nature of the error?