You can find a quickstart guide on how to connect to Azure Database for MySQL using PHP
https://learn.microsoft.com/en-us/azure/mysql/single-server/connect-php Please let me know if you find any issues or need any additional information.
Regards
Geetha