method add quotation for string php code example Example: addslashes php $str = addslashes('What does "yolo" mean?'); echo($str);