Hello, my name is Hamza. My friend asked, "Do you love plaing basketball?".
He said Yes, I love playing basketball.

Hello, my name is Hamza. I asked My Friend, "Do you love playing basketball?"

He said Yes, I love playing basketball.

This is how the escape slash works: "In my example, the escape slash tells PHP to run the quotes as a literal. So it will put the quotations around my sentence that I wrote. The escape slash (\) in PHP is used as an escape character. When it precedes certain characters within a string, it alters their interpretation, indicating that they should be treated as literal characters rather than special characters."