Level 5
May 11, 2016
1
Level 5
Is it common to have just a return statement in a php file - PHP
Hi,
Sorry about the simple question but I'm fairly new to PHP.
Is it common to have just a return statement in a php file? If yes, can someone show me how this is used in other files?
A perfect example is the config files, for instance the database.php.
Once again sorry, I know this is a php question an I should probably already know this but I don't :(.
Thanks
Please or to participate in this conversation.