I am sending an API request and want to submit a search term inside the URL:
$query="My Query";
$query_encode= urlencode($query);
$url_json="API_URL".$query_encode
$json = file_get_contents($url_json);
What I want to do is that "My Query" should contain a more complex term like:
"word1 word2" (word3 OR word4) AND word5
My problem is that I want to get the results from the API (database) that match excactly "word1 word2" so I need to somehow send the quoatation marks via http.
Does someone has an idea how I need to set up the content of My Query including the required quotation marks to send a query with the phrase, not just the words
$query="My Query";