Purge Cache for a url using api request from website php

I need to purge cache using api purge for a url when a webpage load using php. Please help to get this task done.
I need sample code to that.
Note: need to purge only one url not everything.
Thank you
Best Regards

You may be able to get enough details from the cache section of the Developer Center

Thank you for your reply. May i have the php code to purge cache for a single url in php via api

Cloudflare doesn’t use PHP. If you need assistance with PHP coding, I suggest you check stackoverflow.com or hire a PHP developer.