PHP: Location header bypassing
There's a trick where you can bypass Location headers. There are a lot of bad coding practices, and I'll show you how easy it is to bypass them and to protect yourself against it.
PHP: Inline Switch Statement (Anonymous Function)
Another reason why I love PHP is its ability to do so many things inline, while keeping the code flow amazingly simple. This is an inline anonymous switch statement, and it allows us to use a switch statement to return us something.
PHP: Run a function over a list of referenced variables (var_walk)
This function allows you to run a function over a list of referenced variables. It works a little like array_walk(), but allows an unlimited amount of variables to be referenced.
How to install v8js for PHP 5 on Windows
This is a simple tutorial to help you install v8js for PHP on Windows. It explains installations for both PHP 7 and PHP 5.
How to install v8js for PHP 5 on Linux
In this tutorial I will explain how to install and setup v8js for PHP 5 using Linux. It's pretty easy when using the PECL package.
PHP: Inline Spintax Function
This was the first PHP oneliner I came up with that spins text around using the well known text spin syntax (Spintax).
PHP: Random unique array value (using an Inline anonymous function)
Here's a small piece of code I wrote which plays around with inline anonymous functions.
It shows you a unique value of an array, even when refreshing the page. The output will be different every time and no value will ever be shown twice in a row.