Im not very knowledgable when it comes to this, but I am learning. I have tried everything I can think of to add a variable to this, so that I dont have to edit this file. I wish to put the API key in a separate config file just to keep things neat and easier to make changes rather than having to remember all the files that have to be edited for these api keys. Here is the code I cannot figure out.
private $_nodes = array("https://omdbapi.com/?apikey=123456&i=%s");
I tried this, but no joy. Cant figure it out. I tried many variations. Maybe this isnt even possible in an array, like I said, I have alot to learn
private $_nodes = array("https://omdbapi.com/?apikey='"$site_config['OMDBAPIKEY']"'&i=%s");
I have managed to move all other API keys to the config, but this one just wont work
.is the concatenation operator in PHP.