par
gesualda » 27 juil. 2006, 19:04
Bonjour à tous,
Ma question va faire sourire, mais que vaut-il mieux utiliser et surtout pourquoi, un texte dans une variable $mavariable ou bien "define" avec le texte" comme dans l'exemple puisque le resultat est le même ?
$text_page['page_1_1'] =
'
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for
those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et
Malorum" by Cicero are also reproduced in their exact original form, accompanied
by English versions from the 1914 translation by H. Rackham
';
//Affichage texte
echo $text_page['page_1_1']."<br /><br />" ;
//Affichage texte
define('TXT_PAGE_1', 'The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for
those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et
Malorum" by Cicero are also reproduced in their exact original form, accompanied
by English versions from the 1914 translation by H. Rackham
');
echo TXT_PAGE_1;
Bonjour à tous,
Ma question va faire sourire, mais que vaut-il mieux utiliser et surtout pourquoi, un texte dans une variable $mavariable ou bien "define" avec le texte" comme dans l'exemple puisque le resultat est le même ? :D
[php]$text_page['page_1_1'] =
'
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for
those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et
Malorum" by Cicero are also reproduced in their exact original form, accompanied
by English versions from the 1914 translation by H. Rackham
';
//Affichage texte
echo $text_page['page_1_1']."<br /><br />" ;
//Affichage texte
define('TXT_PAGE_1', 'The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for
those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et
Malorum" by Cicero are also reproduced in their exact original form, accompanied
by English versions from the 1914 translation by H. Rackham
');
echo TXT_PAGE_1;[/php]