Advertisement
Zetura

Exemple fonction PHP

Mar 19th, 2014
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. function concatenation($argument1, $argument2){
  2.     $nouveauTexte = $argument1.' '.$argument2;
  3.     return $nouveauTexte;
  4. }
  5.  
  6. $texte = concatenation('Exemple de', 'fonction PHP');
  7. echo $texte;
  8. $texte = concatenation('pour afficher', 'du texte concaténé');
  9. echo $texte;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement