Basic PHP code example for adding new leads

Basic PHP code example for adding new leads

I have looked in vain to find a simple php code example for adding leads while processing a form from our website's support/inquiry forms. Our form has multiple actions, including sending emails and logging certain data in our own database.

I just need a snippet or something to demonstrate how I go about taking a few of the form fields we have collected and sending them via the API to our Zoho account to create a new lead.

Example code would be helpful.