'Using a function before defining it in PHP

in C++, all functions must be defined before using them. In PHP, can I use a function before defining it? Will it be slower?

php


Solution 1:[1]

In C++, we need to declare a function before using it. Not so in PHP: functions need not be defined before they are referenced.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 AbdullahC