OOP

How to Backup MySQL Database using PHP

Submitted by nurhodelta_17 on
This tutorial tackles on how to back up MySQL database using PHP with MySQLi OOP extension. There are several ways on how to backup our MySQL database and if your hosting your site, there are CRON jobs where we can schedule back up of our database. In this tutorial however, we are going to backup our database using PHP.

How to Pass Optional Paramater to a Function in PHP

Submitted by nurhodelta_17 on
This tutorial tackles on how to pass optional parameter to a function in PHP. When we create a function and set a parameter to pass to this function, the function expects the parameter to be passed and will throw an error if none given. For instance that you wanted to pass an optional parameter to a function, hope you'll find this tutorial helpful.