# PHP cURL generated code syntax not escaping double quotes

**URL:** <https://community.postman.com/t/php-curl-generated-code-syntax-not-escaping-double-quotes/21131>\
**Category:** Help Hub\
**Tags:** code, php\
**Created:** [March 8, 2021, 3:35pm UTC](https://community.postman.com/t/php-curl-generated-code-syntax-not-escaping-double-quotes/21131 "2021-03-08T15:35:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcdermottmb](https://avatars.discourse-cdn.com/v4/letter/m/8491ac/32.png) [@mcdermottmb](https://community.postman.com/u/mcdermottmb)\
**Post date:** [March 8, 2021, 3:35pm UTC](https://community.postman.com/t/php-curl-generated-code-syntax-not-escaping-double-quotes/21131/1 "2021-03-08T15:35:24Z")

</div>

PHP cURL generated code no longer escapes double quotes. It used to but now it has to be manually updated before using in a PHP script. Is there any way to update the way this code is generated so it includes the proper syntax?  
CURLOPT\_POSTFIELDS =\>’{“firstName”: “Carol”,“lastName”: “Jones”,“title”:“Accounts Payable Clerk”,“company”: { “id”: 35454 },

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [March 8, 2021, 5:10pm UTC](https://community.postman.com/t/php-curl-generated-code-syntax-not-escaping-double-quotes/21131/2 "2021-03-08T17:10:17Z")

</div>

Hey @mcdermottmb 👋

Here’s the code in the repo - [postman-code-generators/codegens/php-curl at develop · postmanlabs/postman-code-generators · GitHub](https://github.com/postmanlabs/postman-code-generators/tree/develop/codegens/php-curl)

PRs are always welcome or at the very least, you could create a new issue so the team can take a look at it.
