Q. Which PHP function trims whitespace from both ends of a string? (A) strip() (B) trim() (C) clean() (D) remove_space() ποΈ Show Answer π¬ Discuss π Share β‘Menu β Correct Answer: (B) trim() Explanation: trim() removes whitespace from both ends.