PHP | Page 5

PHP: Require() Function |Difference from include() function


The require function used to include the file. If any error occurred, you will get plain warning messages or fatal errors. In this example, we will learn PHP require() function with the best resource.




PHP: include() function


The include function used to include the file. If you want to copy another file data on a page so you can use the include() function. Define Include Function in PHP.




POST Method in PHP


In this tutorial, we will learn the PHP POST method. The POST method transfers information via HTTP headers. Define the POST Method in PHP. In this PHP tutorial, we will implement the PHP POST method example.




GET method in PHP


In this tutorial, we will learn about the PHP GET method. There is no security with the GET method if you have the password or other sensitive information to be sent.




Upload a CSV(excel) file and import into database using PHP and MYSQL


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




HTML form data convert into excel file using PHP|CSV file format


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.




Error Handling Mechanism in PHP


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.




PHP: File Modes


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.




PHP File Operators


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.




Date and Time functions - PHP Examples


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.




Function Without arguments | No parameters


Without argument with functions, we defined value first and call the function.No arguments to pass in the function.No parameter define in function.




PHP Function With arguments


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.




PHP: Factorial recursion program


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.




Swapping Two variables


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.




Pass by value vs reference


Learn about pass by value vs pass by reference. In the pass by value, the argument values are affected only locally in the function. Difference between Pass by value vs reference in PHP.




User Defined Functions in PHP


Learn about the User-defined functions in PHP. In PHP there is various built-in function and also within you can create your own functions for different functionality perform. A user define the function in PHP declared by the word -function.PHP User Defined Functions examples and code.




PHP Built-in Functions


Learn about the built-in function in PHP.Complete tutorials on built-in functions. Built-in functions are those functions that are already readymade. These functions are used for a specific purpose. Each built-in function has different functionalities.




Foreach Loop


The foreach loop is a very useful loop that accesses the array items one by one. The foreach loop work only on the array.Foreach loop in PHP with examples and reference.




PHP do While Loop


In the do-while loop, code executes at least once then repeats the loop as long as a condition is true. The do-while loop is slightly different from the while loop.




PHP While Loop


While statement(loop) depends on the expression if a test expression is true then the while statement will execute a block of code .PHP While Loop example.