Learn PHP: Variable Scope

preview_player
Показать описание

Official site

Twitter
Рекомендации по теме
Комментарии
Автор

The first example, where the variable was defined outside of the function would of worked in JavaScript right? This demonstrated the difference with the way scope works in JavaScript and in php if the answer to the question is yes.

jackky