php7

Write a Simple CLI Command using Symfony

Using Symfony framework developers can create various types of commands which can be executed by consoles. Symfony already provides lots of console commands, Like php app/console cache:clear or php bin/console doctrine:mapping:import --force AcmeBlogBundle xml. Now if we want to create a command like those for…

'Spaceship' Operator <=> in PHP 7

The PHP development team already announced the new version of PHP 7.0.0 RC 5. It comes with many more new features, and I'm excited about one of the feature called Spaceship Operator <=>. Those who already knows PERL or RUBY programming basics may be familiar with this…