
Differences Between PHP Versions 7.4, 8.0, 8.1, 8.2 and 8.3
PHP is one of the most popular open-source scripting language that is widely used for web development. It has evolved significantly over the years, introducing

Most common and used PHP extensions
Here are some of the most common and used PHP extensions: BCMath: Provides functions for performing arithmetic operations with large integers and non-integer numbers, which

PHP Foreach Loop Benchmark – Optimise your code & Keep the server happy!
Keep the internet as energy efficient as possible and the easiest ways to reduce your carbon footprint is to optimise your code. The future of

Get HTTP Status Code – PHP Functions
Below are some useful solutions (php functions) for HTTP Status Codes returned in the required page header by servers when loading a web page. global $http_status_code;

Convert String Array Associative to Array Type – Eval and array index as variable
Recently I encountered a small problem with a library downloaded from github or sourceforge (I don’t remember exactly), but quite old, with many functions used

Gets the current working directory in PHP
using getcwd() – gets the current working directory – php function echo getcwd(); using dirname() php function echo dirname(__FILE__); echo dirname($_SERVER[PHP_SELF]); using basename() php function – (PHP5+) echo basename(__DIR__) so if

Get HTTP Status Code from Header – PHP
1. First of all we have to: deactivate the SSL verification because there are cases in which the site is redirected from a domain where

Get last URL after following HTTP redirections in PHP – get_headers
1st. step: Disable https/ssl verify & set some headers … $context = stream_context_create( [ ‘ssl’ => [ ‘verify_peer’ => false, ‘verify_peer_name’ => false, ], ‘http’=>array(

Get PHP MAJOR,MINOR and RELEASE Version Number – Linux Server
To find out the current version of php active on the server, there are basically two simple solutions and both use the php command with