It&#x27;s not just about education.
PHP encourages bad practice. The language is implemented by people who haven&#x27;t learned from the past 30 years of language design. It&#x27;s made available to beginners and presented as &quot;easy&quot; when dealing with all the gotcha&#x27;s is everything but. Etc.
Sure, you can learn how it works and a competent person could probably write safe code with it (given enough time). But it&#x27;s really a dangerous language, the use of which should be discouraged.   Better alternatives exist.