Jump to content

creating a string which includes quotation marks


limessl

Recommended Posts

I have a variable that is returned as text, but for the API that I'm integrating it requires the text to be sent back inside quotation marks.

 

So at the moment the code says

 

$valid = "text string"

$req['Request']['OrderRequestParameter']['ValidityPeriod']['Months'] = $valid;

 

so the value being transmitted to the API is text string rather than "text string"

 

note that $valid is actually being created from another variable, so it's not as easy as saying

 

$valid = "/"text string/""

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.