Sometimes, when we make a curl call to third party services, we get an error curl: (60) SSL certificate : unable to get local issuer certificate. This error occurs because... read more →
You can use addslashes addslashes will do the trick. It will return a new string with the all the quotes ( ' and " ) with their escaped counterparts.