PHP Function | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

PHP Function

Hi i want to understand something. when i am inside a function in php like : function MyFunction() { include("myFile.php"); } it i call the function does the file myFile.php will be included in the whole Script or only inside the function ?

21st Jan 2021, 4:03 PM
MΛΛRS
MΛΛRS - avatar
1 Réponse
0
The file php will be included once u call ur function in the whole script . If u don't call the file won't be included
21st Jan 2021, 9:56 PM
Nassera
Nassera - avatar