Swapping in PHP is a very easy method. Swapping two variables means you have to interchange the value of variables. In this tutorial, we are going to swap two variables using PHP programming.
Create a program using the recursion method to find out the factorial of a number and factorial program using PHP for a loop. You have to use mathematics logic to find out the factorial of n number. In this example, we will learn complete basics terms in PHP.
In the function of arguments, we pass the arguments in function and define the value of variables at the end of the function call. Learn Complete function with argument using PHP.
Without argument with functions, we defined value first and call the function.No arguments to pass in the function.No parameter define in function.
Date() and time() functions are used to display the date and time on the web page. Display the Time with 12 hrs formate and also Display the day name on the webpage. Date and Time function Examples. Learn the complete PHP date and time functions.
In this tutorial, we will learn about how to create files, open, read, delete, append, close in PHP.Tutorial on Creating Files, Directories. PHP Directory Examples.
File modes are the elements used to perform various tasks. Like-Create a file, Open , Read, Delete, Append , close . File modes explained in PHP. File Modes examples.
Error handling mechanism is too important for the web applications to display the error message if the file doesn’t exist. Handle the error In PHP. How to handle error in PHP. Error handling mechanism in PHP.
In this tutorial, we will fill the information in the form and convert it into CSV (Excel )File. Here we will convert HTML form data into CSV file using PHP.
Learn how to CSV file upload and parse it , get data into the database table? Convert Excel(CSV) file data into a MySQL database table. Save excel data into a database. How to import CSV file data into a database using PHP