Return to Snippet

Revision: 57273
at May 23, 2012 21:32 by pruntrut


Initial Code
function GetMonthName($month)
    {
        switch($month)
        {
			case(1):
            return('Janvier');
            break;    
 
            case(2):
            return ('Février');
            break;
            
        	case(3):
            return ('Mars');
            break;
			
			case(4):
            return ('Avril');
            break;
			
			case(5):
            return ('Mai');
            break;
			
			case(6):
            return ('Juin');
            break;
			
			case(7):
            return ('Juillet');
            break;
			
			case(8):
            return ('Août');
            break;
			
			case(9):
            return ('Septembre');
            break;
			
			case(10):
            return ('Octobre');
            break;
			
			case(11):
            return ('Novembre');
            break;
			
            case(12):
            return ('Décembre');
            break;
  
            
            default:
            return 0;
        }
    }

Initial URL

                                

Initial Description
Get French month name

Initial Title
Get French month name

Initial Tags

                                

Initial Language
PHP