PHP equivalent of Python's requests.get : <p>I'm trying to access an API using PHP but for which the tutorial is only written in Python. The tutorial shows how to retrieve the data from a URL using</p>

<p>res = requests.get(API_URL, auth=(UID, SECRET))</p>

<p>Please can someone tell me what the equivalent statement would be in PHP, thanks.</p>
