I would like to offer my web site in several languages.

Witch of these two practices will be the best ?

Practice 1:
===========

* Create a php file for each lang (fr.php, en.php).
* In each language file proceed by reference: `$TEXT01 = 'Hello'; $TEXT02 = 'Goodbye';`
* Call the var in the page like this: `<?php echo $TEXT01; ?> Marie`.
* Do I need to create ini files (<https://stackoverflow.com/a/8636984/3678005>) ?

Practice 2:
===========

* Create only one big function `translator` with an array for each text I need to translate.
* Call the function in the page like this: `<?php echo translator('Hello', 'en'); ?> Marie`.

My questions:
=============

* Witch solution will be the fastest in terms of resources?
* Witch solution will be the safest ?
* Do you have another solution, if my two solutions are not optimal.

Thanks.