Php debutant
Fermé
laurent
-
6 mars 2011 à 12:32
JooS Messages postés 2465 Date d'inscription mardi 22 janvier 2008 Statut Membre Dernière intervention 8 juin 2016 - 6 mars 2011 à 14:57
JooS Messages postés 2465 Date d'inscription mardi 22 janvier 2008 Statut Membre Dernière intervention 8 juin 2016 - 6 mars 2011 à 14:57
A voir également:
- Php debutant
- Easy php - Télécharger - Divers Web & Internet
- Logiciel de programmation pour débutant - Guide
- Get_magic_quotes_gpc php 8 ✓ - Forum PHP
- \R php ✓ - Forum PHP
- Href php ✓ - Forum PHP
1 réponse
JooS
Messages postés
2465
Date d'inscription
mardi 22 janvier 2008
Statut
Membre
Dernière intervention
8 juin 2016
228
6 mars 2011 à 14:57
6 mars 2011 à 14:57
C'est mieux comme ça, non?? o_O
<?php function calSomme($nbre1,$nbre2,$nbre3,$nbre4) { return $nbre1+$nbre2+$nbre3+$nbre4; } function calPartAnnuelle($nbre1,$nbre2,$nbre3,$nbre4){ return calSomme($nbre1,$nbre2,$nbre3,$nbre4)/12; } $total = calSomme(30,647,1997,247); $partition = calPartAnnuelle(30,647,1997,247); echo 'total '.$total.'<br>'; echo 'part '.$partition; ?>