How to add a quote to the PHP string. Code example Tech90 Approved. Code works! This is exactly the working code that is verified by the moderator or site administrators May 4, 2022 Edited October 30, 2023 To do this, use shielding with the symbol “\” Example: echo 'My name is \'Earl\''; 0