Should I use global variables?

Someone posted a question about using global variables on r/php, which I answered. Copied here for posterity.

»
Author's profile picture Dave Hulbert on design, php, and solid

Notes on designing through mocking

My notes on Everzet's talk "Design how your objects talk through mocking" at PHPNW14

»
Author's profile picture Dave Hulbert on design and php