The most intriguing part when defining the function is that, in PHP, it actually works like a sealed box. There are particularly two types of scopes, one is the Global scope and the other is the Local scope. A code or an echo statement cannot access the contents or the elements contained inside the function but can do so if the elements are outside. Why? Watch the entire video to find the answer.