Generate a new account address in the wallet

Hi, please let me know if there is some API to Generate a new account address in the wallet.

A php or javascript code to generate a new account address will be appreciated too.

Thanks.

The program you are writing is turning the wallet number to you. I wrote in python would you care?