I realise there are loads of posts our there going through how to do this, but can someone just convert the following cURL ito php cURL please? Please note: there are the stardard post data bits, but then the YXYXY:WZWZWZ bit as well...
curl -X POST -d 'grant_type=password&username=ABABABA&password=CDCDCDC' --user 'YXYXYXYXY:WZWZWZWZWZWZW' https://www.reddit.com/api/v1/access_token
TIA.