Join Kevin Skoglund for an in-depth discussion in this video Alternative PHP tags, part of PHP 7 New Features.
- [Voiceover] One thing that's been removed from PHP 7…is support for alternative PHP tags.…Regular PHP tags, the kind that hopefully you are using,…and that you should be using, look like this:…<?php, then our code,…and then ?>.…That's a standard PHP tag.…In the past, though, it was also possible…to use some alternatives.…One of those was ASP-style tags, and they look like this:…<%, and then closing it with %>.…
These are called ASP-style tags…because they are in the style of the ASP language.…And there's another version of them as well,…that allows you both to turn on the PHP parser,…and to echo the output all in one step.…And that's by using the <%= at the beginning.…Both of these have been removed in PHP 7.…There also was a directive in the php.ini file…that you use to turn these on,…and that directive has been removed as well.…Historically, it was also possible to declare your PHP…by using a script tag.…
Now, not many people did this, but it was possible.…This would turn on the PHP parser.…But that behavior has also been removed in PHP 7.…
- Scalar type and return type declarations
- New operators in PHP 7
- Anonymous classes
- Arrays as constants
- Catchable exceptions and errors
- Integer division with intdiv()
- Deprecations and deletions
Skill Level Intermediate
1. Major Features
3. Deprecations and Deletions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.