Category: php7

What’s New and Exciting in PHP 7.1?

The PHP community has gone viral with the latest PHP 7 announcement and all the goodies it brings to the language. The PHP 7.1 release has more good news and features to offer. This article highlights the most important ones, and you should check PHP RFC for the full list.ArgumentCountError Exception Earlier versions...

What’s New and Exciting in PHP 7.1?

The PHP community has gone viral with the latest PHP 7 announcement and all the goodies it brings to the language. The PHP 7.1 release has more good news and features to offer. This article highlights the most important ones, and you should check PHP RFC for the full list.ArgumentCountError Exception Earlier versions...

Re-Implementing the Range Operator in PHP

In the prequel to this article (hint: make sure you’ve read it first), I showed one way to implement a range operator in PHP. Initial implementations, however, are rarely the best, and so it is the intention of this article to look at how the previous implementation can be improved. Thanks once again to Nikita Popov ...

Implementing the Range Operator in PHP

We sometimes come across some amazing posts in other locations, and with the permissions of their authors, repost them on SitePoint. This is one such instance. In the post below, Thomas Punt implements the range operator in PHP. If you’ve ever been interested in PHP internals and adding features to your favorite prog...

The PHP Channel’s Survey Results and 2016 Plans

On the last day of 2015, we published a survey asking you, the readers, for an opinion about the PHP channel. It was a pretty open survey with mostly freeform answers allowed, so you could tell us literally anything. All in all, we collected 78 responses so far (the survey will remain open indefinitely, in case someone...

Setting up PHP 7 Servers with Laravel Forge and DigitalOcean

One of the most popular requests in our end-year reader-satisfaction survey was more PHP 7 content. In this quick guide, we’ll cover two ways to bring a PHP 7 server online on DigitalOcean – a popular VPS provider. We’ll use two approaches, the latter of which will be applicable to any Ubuntu installation whe...

What a Year! Help Us Make 2016 Even Better!

It’s been a wild ride here at the PHP channel. The peer review program took full swing and produced results so good they resonated across other channels. Our average traffic has continued to gradually rise, and reader engagement is up, too – no doubt owing to our transition back to a more user friendly commenti...

Learn PHP 7, Find out What’s New, and More

PHP 7, the next version of the world’s most popular programming language, has been released. We’d love to shoot fireworks and get drunk with our newfound power (seriously, the language is in the true big leagues now, functionality and performance-wise) but we’re sure the rest of the internet will do this for us. ...

Randomness in PHP – Do You Feel Lucky?

This article analyzes problems related to random number generation used for cryptography purposes. PHP 5 does not provide an easy mechanism for generating cryptographically strong random numbers, while PHP 7 solves this by introducing a couple of CSPRNG functions. What is a CSPRNG? Quoting Wikipedia, a Cryptographic...