al2meta

al2meta

PHP: echo vs print

Echo and Print are almost similar with both being not a function but language constructs, and both are used to output a string or data to the screen. But despite their similarity, they actually have some differences though quite subtle.…

What is T_PAAMAYIM_NEKUDOTAYIM syntax error?

Some people on older versions of PHP may encounter a Parse error message saying "syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM)" and may wonder what it is. I remember creating a Scientific Calculator PHP code before, and while working on the code,…

Fallback for PHP's each function

The each function or each() function has been deprecated as of PHP 7.2.0, and was completely removed as of PHP 8.0.0. Using this function on your PHP code will trigger a "Call to undefined function" error when running on a…