Turbo Learn PHP

Quick PHP chats, tips, and insights in a fast, simple format

Turbo Learn PHPTurboLearnPHP
2026-01-27
Turbo Learn PHPTurboLearnPHP
2026-01-26

How to Avoid switch Type Juggling Bugs

Loose switch cases can match the wrong branch.

youtube.com/watch?v=ySZmYPKx6IY

Turbo Learn PHPTurboLearnPHP
2026-01-25

PHP Magic Constants Behavior

Watch this! PHP magic constants change based on context. See __LINE__ and __FUNCTION__ in different scopes. Perfect for debugging!

youtube.com/watch?v=OZb0gcBc6bk

Turbo Learn PHPTurboLearnPHP
2026-01-24

Why does this PHP timezone conversion shift dates?

Why does this PHP timezone conversion shift dates in reports. The PHP code parses a UTC timestamp as local time and then converts it, effectively double shifting. In PHP analytics this moves events by hours.

...

youtube.com/watch?v=F8aJ6XU6Czo

Turbo Learn PHPTurboLearnPHP
2026-01-24

Proof That PHP Dominates Type Safe Collections Raw

⚡ Proof That PHP Dominates Type Safe Collections Raw - Code quality comparison! Junior developers make common mistakes, senior devs write clean code. Learn from this! Your code quality will improve!

...

youtube.com/watch?v=c_3zIoWRIrg

Turbo Learn PHPTurboLearnPHP
2026-01-24

Magic Quotes Corrupts 10M Database Records With Backslashes?!

MAGIC QUOTES HELL! Double-escaping for 3 years! Every apostrophe becomes \\\! 10M articles, comments, pages UNREADABLE! $8.7M manual cleanup! 6 months to fix! Migration lead FIRED!

youtube.com/watch?v=NMYlZFdeAK0

Turbo Learn PHPTurboLearnPHP
2026-01-23

PHP Null Coalescing Operator Secret

Stop scrolling! PHP ?? operator has a hidden trick. Watch null ?? 'default' ?? 'fallback'. The result will surprise you!

youtube.com/watch?v=AVWEeNrXnjs

Turbo Learn PHPTurboLearnPHP
2026-01-23

Global Scope CHAOS: var vs $GLOBALS!

JavaScript's global scope vs PHP's superglobals - which is messier? CONTROVERSIAL!

youtube.com/watch?v=6xlPsrbGR78

Turbo Learn PHPTurboLearnPHP
2026-01-23

How to Stop unserialize From Becoming Code Execution

Untrusted serialize data can run magic methods.

youtube.com/watch?v=Yi43pgKyKB8

Turbo Learn PHPTurboLearnPHP
2026-01-22

Context Managers: Python's 'with' is GENIUS!

Python's context managers vs PHP's try-finally - which handles resources better? INSANE difference!

youtube.com/watch?v=ojArYRcxXqg

Turbo Learn PHPTurboLearnPHP
2026-01-22

How to Fix isset Hiding Null Config Values

isset returns false for null and masks real keys.

youtube.com/watch?v=K3RX_BEvc30

Turbo Learn PHPTurboLearnPHP
2026-01-21

PHP Array Key Casting Explained

PHP automatically casts array keys in ways you might not expect! This tutorial reveals the shocking truth about array key types.

Learn why integer 1, string "1", and float 1.5 all become the same array key in PHP. Understanding this behavior is crucial for avoiding bugs!

Essential PHP knowledge for intermediate and advanced developers.

...

youtube.com/watch?v=mHyHGYLEs-Y

Turbo Learn PHPTurboLearnPHP
2026-01-21

Stop Ignoring Early Returns Nested Ifs In PHP

⚡ Stop Ignoring Early Returns Nested Ifs In PHP - Code quality comparison! Junior developers make common mistakes, senior devs write clean code. Learn from this! Which approach do you use?

#...

youtube.com/watch?v=EspLDMrdL8U

Turbo Learn PHPTurboLearnPHP
2026-01-20

Modulo with Negatives

Modulo with negative numbers in PHP! See -7 % 3 vs 7 % -3 - which negative wins? The answer surprises everyone!

youtube.com/watch?v=dGydndHfPKI

Turbo Learn PHPTurboLearnPHP
2026-01-20

How to Avoid trim Removing the Wrong Characters

trim removes a character list, not a substring.

youtube.com/watch?v=3lWvc-JoDFI

Turbo Learn PHPTurboLearnPHP
2026-01-19

What's wrong with this PHP JSON parse?

What's wrong with this PHP JSON parse in an API handler. The PHP code treats empty arrays and valid zeros as errors because it checks for falsey values instead of json_last_error. In PHP services this rejects legitimate requests.

...

youtube.com/watch?v=tjF51Chtf8E

Client Info

Server: https://mastodon.social
Version: 2025.07
Repository: https://github.com/cyevgeniy/lmst