Jump to content

Formatting variable in a string


twittoris

Recommended Posts

I am trying to insert a variable into this post string:

 

curl_setopt ($ch, CURLOPT_POSTFIELDS, 'p_entity_name=The+Company+Name+LLC&p_name_type=A&p_search_type=BEGINS');

 

I want to replace company name with $name

 

like: curl_setopt ($ch, CURLOPT_POSTFIELDS, 'p_entity_name='+ $name + 'p_name_type=A&p_search_type=BEGINS');

Link to comment
https://forums.phpfreaks.com/topic/212699-formatting-variable-in-a-string/
Share on other sites

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.