Employers: discover CodinGame for tech hiring
EVENTS
UPCOMING
PAST
SOLO
PUZZLES
CODE GOLF
OPTIMIZATION
MULTI
LEADERBOARDS
CLASH OF CODE
BOT PROGRAMMING
CODING ESCAPE
COMMUNITY
CONTRIBUTIONS
LEARN
DISCORD
FORUM
LIVE STREAMS
BLOG
Log In
Sign Up
Test technique Partnaire
Anonymous
7,442 views
01
Quizz PHP
02
Exercice PHP
2/2
Exercice PHP
Previous:
Quizz PHP
Créer une fonction election() qui prend une année en argument et retourne true si une élection présidentielle est prévue cette année là ou false si ça n'est pas le cas. Les années testées seront >= à 2007.
1
2
3
4
5
6
<?php
function election($annee) {
// Mettre votre code ici
}
Run
52
13
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
Suggested playgrounds
ABOUT US
CAREERS
PRIVACY
FAQ
CodinGame - Work
The #1 tech hiring platform
SCREENING
INTERVIEWING
ABOUT US
CAREERS
PRIVACY
FAQ
Facebook
YouTube
Twitter
LinkedIn
FR
EN