back to course
Lesson 03 / 1952%· free preview
Introduction to PHP3/9
Features of PHP
What makes PHP unique
- Server-side: code runs on the server, never the browser.
- Embedded in HTML: drop
<?php ?>tags inside any.phpfile. - Loosely typed by default, strictly typed when you opt in (
declare(strict_types=1);). - Cross-platform: same code on Linux, Windows, macOS.
- Database-first: native drivers for MySQL, PostgreSQL, SQLite, MongoDB.
- OOP: classes, interfaces, traits, abstract classes, namespaces.
- Huge standard library: 5000+ built-in functions for strings, arrays, files, dates, regex, crypto.
- Composer: world-class package manager + 350,000+ libraries on Packagist.
- Easy deployment: every shared host on Earth speaks PHP.
- Free + open source under the PHP License.
Real-world stack
textBrowser → Apache/Nginx → PHP-FPM → MySQL ↓ Your code
AI-powered recap
Quick recap quiz?
We'll generate 5 MCQs from this lesson and check your understanding instantly. Takes ~30 seconds.
Ready to move on?
// feedback.matters()
Did this lesson help you?
