PHP Basics

How to Generate PHP Random String Token (8 Ways)

PHP script to generate random string tokens with eight different ways and example. ...

October 5th, 2022

How to Create Zip Files using PHP ZipArchive and Download

A guide to learn how to create and download the zip file from an input directory using PHP ZipArchive class. ...

September 12th, 2022

PHP Session Destroy after 30 Minutes

Learn how to unset and destroy PHP session after the expiry time set in minutes or seconds. ...

September 6th, 2022

PHP Validate Email using filter_validate_email and regex

A basic PHP example to validate email on the server side to check whether its format is valid or not. ...

August 22nd, 2022

PHP CURL Post and Get request with example

How to create PHP curl post and other request methods with a basic introduction and more use case examples. ...

May 6th, 2022

How to Get the Client User IP Address in PHP

PHP code to get IP address using PHP for client users and includes discussion on privacy, GDPR. ...

August 13th, 2020

PHP Namespace

In the file system, we have directories or folders to keep related files. Similarly, PHP namespaces are used to have related code blocks of ...

September 5th, 2013

foreach in PHP

In PHP, foreach statement is used to iterate over a collection of data, like PHP arrays. As per the name of this construct, it will keep on ...

August 20th, 2013

PHP If Else Statement

If and Else statements are a kind of PHP conditional statements, since it applies one or more conditions upon a block of code, based on whic ...

July 25th, 2013

PHP unlink() Vs unset()

These two PHP functions are identical in performing some undo operations but differ in the type of data on which they are applied to perform ...

July 14th, 2013

↑ Back to Top