PHP

PHP 7.1 Warnings: Illegal String Offset + Cannot Assign Empty String To String Offset (working fine in PHP 7.0 and lower)

PHP 7.1 Warnings: Illegal String Offset + Cannot Assign Empty String To String Offset (working fine in PHP 7.0 and lower)

This was a simple question, but googling couldn’t lead me to a clear and proper answer. So, here’s the answer/fix/solution as a personal reminder and potential help to others. I had a strange and annoying problem while updating to PHP 7.1 — everything was working fine, except this little piece of code: $array = $something; […]

PHP Debug And Test Your Code Against Different PHP Versions – PHP Version Change Tips

PHP Debug And Test Your Code Against Different PHP Versions – PHP Version Change Tips

As a developer, you probably require different PHP versions that you can easily change at a click of a button, and to run tests of your code base and simulate different server environments. Problem arises when your hosting offers only selected minor versions (e.g. 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1 etc.), but […]

WordPress – How To Add Custom URL Parameter Button In Admin Dashboard and Execute Function Call

WordPress – How To Add Custom URL Parameter Button In Admin Dashboard and Execute Function Call

In this tutorial we will show you how to expand Admin Toolbar in WordPress with a custom URL shortcut with GET parameter, and execute/call custom function code when you click on that URL. WordPress Tricks: How To Add Custom URL Parameter, Custom Button In Admin Dashboard and Execute Custom Function Call First, complete code presented here will […]