It’s back to school season. Time to hit the books and start learning PHP 7. Don’t forget to check out our other editorial toons!
PHP has announced the availability of a third Release Candidate (RC3) for PHP 7.2.0. Currently, PHP 7.2.0 is in a development preview stage but is set to be released on November 30, 2017. With the prospect of a new PHP version on the horizon, you may be one of the many users who is wondering: Should I update? What benefits does this version offer? Is my site ready for the update? Before reading too much further, it’s important to note that 7.2.0 is a minor PHP release, which offers smaller tweaks and improvements. Larger releases include PHP 7.0, which is […]
PHP 7 has been around for well over a year now, and yet only 4.5% of sites have made the upgrade from PHP 5. With users and their hosts lagging behind, a large number of sites remain more vulnerable to hacking and performance issues than their updated counterparts. As a WordPress developer, you hold much more sway and influence than you might think. Brands such as Yoast are asking you to use that power to help upgrade the internet as a whole. You can do this by adding nudges to your plugins using Yoast’s WHIP framework. This helps you inform the user […]
Though it’s the most widely used web programming language, PHP has taken a lot of flack in development circles. However, after a long period with no major updates, PHP 7 has finally been released with many great new features – and it will also help you keep your WordPress website in tip-top shape. Simply put, PHP is at the heart of the WordPress core, and to get the best possible performance for your site, you should always use the latest version. However, while some hosts are being proactive, you may need to give your particular host a nudge if they’re dragging their […]
2016 was a big year for WordPress, and 2017 is already set to be even bigger. With Let’s Encrypt changing the SSL landscape, Automattic changing the criteria of their recommended hosting solutions, and the REST API continuing its emergence, there’s a lot to consider in the months to come. So what does all of this mean for WordPress developers and users? In a nutshell, it means a lot! The new year will bring with it huge changes to the world of WordPress, which could take you by surprise if you’re not up to speed. In this post, we’ll dust off […]
Powering over 76 million websites and holding a 59% CMS market share, WordPress continues to dominate the web in 2017. However, with the new year comes new challenges. Since PHP 7 could be the minimum requirement for running self-hosted WordPress in 2017, updating your server’s version of PHP to PHP 7 could be a necessary step. In this post, we’ll cover why you should upgrade to the latest version, how to upgrade your server to PHP 7, any new features, inconsistency fixes, its overall performance, any backwards incompatible changes, the compatibility checker, and a note on PHP 7 benchmarks. Let’s […]
Last week, I wrote about type hinting, in PHP. Type hinting makes the intent of a function clearer and forces the values to show a specific type of value. While having a function that only accepts a certain type of value removes the need to check a variable’s type from the function, it doesn’t mean you don’t have to check that type first before calling the function. Passing a variable of the wrong type creates a fatal error. For example, get_post_meta() can return pretty much any type of data. If you’re using it in a way that you expect it to […]
PHP started out as a simple language without a lot of the conventions of other C-like programming languages that make them challenging to learn and more difficult to write. Over time, as PHP matured, many of those features have been added as optional syntax. One example of this type of feature is type hinting. Type hinting gives you the ability to define the type of values that can be passed for each argument of a function or method. Type hinting is optional, but when used it forces parameters to be a certain type or an error is thrown. Doing so makes […]