Here’s a comma separated string function which uses the serial comma properly with a conjunction in a list. e.g. apple, berry, ice cream => apple, berry and ice cream. It’s essentially a natural language join: public static function natural_language_join(array $list, $conjunction = ‘and’) { $last = array_pop($list); if ($list) { return implode(‘, ‘, $list) . […]
Articles Tagged: php
Jeff Reifman Interviewed by Cloudways
Recently, cloud hosting provider Cloudways interviewed Yii2x founder Jeff Reifman. Cloudways asked about Jeff’s development as a PHP programmer and what he appreciates most about the Yii Framework. There’s also discussion about how he builds features for scheduling meetings in his startup, Meeting Planner: Recently, I gave a meetup presentation on how I built the […]
Web Application Development with Yii 2 and PHP
This is one of the first books written specifically for Yii2: “This book embraces the learn-by-example methodology to show you the most important features of the Yii 2 framework. Throughout the course of this book, you will build a simple real-world application; each chapter will introduce you to a new functionality and show you how […]