Sample script for creating tickets with attachments using API

Find attached a sample PHP script(ticket.php) for creating tickets with attachments using API. For multiple attachments refer multiple_attachments.php file.