Book Image

PHP 7 Programming Solutions [Video]

By : Doug Bierer
Book Image

PHP 7 Programming Solutions [Video]

By: Doug Bierer

Overview of this book

<p>PHP 7 comes with a myriad of new features and great tools to optimize your code and make your code perform faster than in previous versions. Most importantly, it allows you to maintain high traffic on your websites with low-cost hardware and servers through a multithreading web server.</p> <p>This course demonstrates intermediate to advanced PHP techniques with a focus on PHP 7. Each video is designed to solve practical, real-world problems faced by PHP developers like yourself every day. We also cover new ways of writing PHP code made possible only in version 7. In addition, we discuss backward-compatibility breaks and give you plenty of guidance on when and where PHP 5 code needs to be changed to produce the correct results when running under PHP 7. This course also incorporates the latest PHP 7.x features.</p> <p>By the end of the course, you will be equipped with the tools and skills required to deliver efficient applications for your websites and enterprises.</p> <h1>Style and Approach</h1> <p>This course takes a task-based approach, with real-world examples that can serve as building blocks for a larger application. Each task is self-contained with no external dependencies. This course is designed in a way that you will be able to understand how to deal with various scenarios you may encounter while using PHP 7 in your daily programming tasks.</p>
Table of Contents (11 chapters)
Chapter 4
Working with PHP Object-Oriented Programming
Content Locked
Section 7
Using Traits
In this video, we will see how to use traits to copy-paste code into a class at the line indicated by the PHP interpreter. - Illustrate how trait methods override inherited methods