PHP addslashes() Function
PHP addslashes() function is used to return a quote string with slashes. It works with some characters:
Your string is :What does "WHO" mean? By using addslashes() function the result isWhat does \"WHO\" mean?
Who's the father of PHP? This is not safe in a database query. Who\'s the father of PHP? This is safe in a database query.
A use case of addslashes() is escaping the abovementioned characters in a string that is to be evaluated by PHP:
Is The Father of PHP\'Rasmus?