I am assembling a frontend using PHP. I would like to provide a method of backing up the MySQL DB using MySQL Dump. Is there a way of doing this using PHP?

Thanks in advance.