Home

Code Snippets Global Exception Handler
In this code snippet, we'll make a global exception handler in PHP. A global exception handler is used to catch any
PHP Code Snippets APIs With The Slim Framework
In this code snippet, we'll make a REST API with the Slim framework in PHP. Slim is a framework that enables
PHP Code Snippets OOP and Objects
In this code snippet, we'll take a look at objects and basic of object oriented programming in PHP. I will
Code Snippets Downloading With File Get Contents
In this code snippet, we'll learn how to perform file downloads in PHP with the file_get_contents() function. The file_get_contents() function
Code Snippets Force File Download
In this code snippet, we'll learn how to force file downloads in PHP.
PHP Code Snippets Data Validation
In this code snippet, we'll learn how to perform data validation in PHP. Data validation is used to make sure
Code Snippets Date
In this code snippet, we'll learn about the date() function in PHP. The date() function takes in a string that specifies
Code Snippets Dirname
In this code snippet, we'll learn about the dirname() function in PHP. The dirname() function takes in a path string and
Code Snippets Request Variables
In this code snippet, we'll learn how to get HTTP request variables in PHP. When an HTTP request is made to the PHP
PHP Code Snippets Pass By reference
In this code snippet, we'll learn how to pass and work with variables by reference in PHP. Variables can be
Advertisment ad adsense adlogger