WordPress is often treated as old days PHP student for not using latest version of PHP. But, now WordPress is going to bigger. It is that, WordPress 5.2 need minimum PHP 5.6. That means, we can use many PHP keyword and modernize our application.
In programming, there are many ways to solve a problem. But, everyone likes to easy and short solution.
The reason of telling that, PHP has a syntax token that will make my day. This is called Argument unpacking token or Variable-length argument lists token. This is typed with three dots ( … ). This is safe to use for 5.6 or latest version. For example,
In PHP, there are plenty of PHP function which are very handy to smoothly build a web application. Currently, I find of 82 array functions and 13 array sorting functions. May be count of functions will be increase on time.
Notes: I will write about all array functions as time being.
array_change_key_case This function is self explanatory. It will change keys of an array, if keys are string. For one dimensional array, array_change_key_case() simply change the keys in uppercase or lowercase (default case). But, for multidimensional array it will be tricky. Following are both types array example
Create a folder named guten-awesome in /wp-content/plugins/. Inside guten-awesome folder creates a starting file for our plugin. It can be any name. Which file has plugin header, this would be the main file. For simplicity, let it plugin.php
VVV ( Varying Vagrant Vagrants) is a 10up.com creation to easily setup WordPress environment. VVV includes long list of development tools that will be time consuming and complex to set up manually. Currently, by installing VVV we will get 25 tools.