Answer the question
In order to leave comments, you need to log in
How to substitute a variable in an address with Curl?
Good night, tell me how to substitute your variable in the line with the curl address
, there is a code:
$add='user123'
$curl->page('https://www.site.com/');
Answer the question
In order to leave comments, you need to log in
in its original form:
there are a bunch of variations on the theme, ranging from sprintf to smarter handling of urlencode - because the moment $add starts to contain spaces or special characters, your code will crash.
And there is generally space like http_build_query
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question