Category: PHP

How to create CSV output from PHP code

This post shows how to generate CSV output from PHP code. In PHP, the fputcsv() function generates a csv file when it is provided a valid two dimensional array. Following…

Misunderstanding isset() behavior in PHP

The isset() function in PHP is often misunderstood, leading to errors and unintended outcomes in code. In this article, we will delve deeper into the workings of isset() and show…

PHP require() vs include()

PHP provides four functions which enable you to insert code from other files. include() require() include_once() require_once() All four can take a local file or URL as input. None of…