Home

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
PHP Code Snippets Working With Strings
In this code snippet, we'll learn how to work with strings in PHP. More specifically we'll learn how to concatenate(join)
PHP Code Snippets Working With Arrays
In this code snippet, we'll learn how to work with arrays in PHP. More specifically we'll learn how to merge
PHP Code Snippets JSON
In this code snippet, we'll learn how to work with JSON in PHP. You can use json_encode() to serialize and json_decode()
PHP Code Snippets Making Requests With CURL
In this code snippet, we'll see how to send HTTP requests with curl in PHP. Curl can be used to
PHP Code Snippets ReCaptcha V3 Implementation
In this post, we'll learn how to implement reCAPTCHA on a website. Recaptcha is used to confirm that the user
PHP Code Snippets String Sanitization
In this code snippet, we'll learn how to perform string sanitization in PHP. An attacker might try to inject some
PHP Code Snippets Reading And Writing Files
In this code snippet, we'll learn how to read and write files with PHP. Let’s see the example below.
Code Snippets Uploading Files
In this code snippet, we'll learn how to upload files with Javascript. We will use the input HTML element and set its type