To remove white spaces from the beginning and end of a string, you would use the ________ function in PHP.
- trim()
- remove_spaces()
- strip_whitespaces()
- clean_string()
The trim() function in PHP is used to remove white spaces from both the beginning and the end of a given string, making it useful for data cleaning.
Loading...
Related Quiz
- Why is client-side validation alone not sufficient for securing form data?
- Once a constant is set in PHP, it cannot be ______ or ______.
- You need to compare two variables in your PHP script to check if they are equal. What operator would you use and why?
- You are writing a PHP script and you need to set a cookie. How would you do this?
- When two or more interfaces have the same method name, it's an example of method ________ in PHP.