<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Julien Breux &#187; bissextile</title>
	<atom:link href="http://www.julien-breux.com/mot-clef/bissextile/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.julien-breux.com</link>
	<description>Consultant - Développeur - Formateur - PHP, Prestashop, Wordpress</description>
	<lastBuildDate>Mon, 15 Aug 2011 17:00:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fonction PHP &#8211; Vérifier si une année est bissextile</title>
		<link>http://www.julien-breux.com/2009/02/21/fonction-php-verifier-si-une-annee-est-bissextile/</link>
		<comments>http://www.julien-breux.com/2009/02/21/fonction-php-verifier-si-une-annee-est-bissextile/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 13:00:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Fonctions PHP]]></category>
		<category><![CDATA[année]]></category>
		<category><![CDATA[bissextile]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[fonctions]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.julien-breux.com/?p=58</guid>
		<description><![CDATA[Description Fonction de verification si une année est bissextile. Source &#60;?php /** * Fonction de verification si une année est bissextile. * @param integer $year Année (AAAA) * @return boolean... <a class="meta-more" href="http://www.julien-breux.com/2009/02/21/fonction-php-verifier-si-une-annee-est-bissextile/">Lire la suite <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<h1>Description</h1>
<p>Fonction de verification si une année est bissextile.</p>
<h1>Source</h1>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #009933; font-style: italic;">/**
* Fonction de verification si une année est bissextile.
* @param integer $year Année (AAAA)
* @return boolean Vrai ou Faux
*/</span>
<span style="color: #000000; font-weight: bold;">function</span> isLeapYear<span style="color: #009900;">&#40;</span><span style="color: #000088;">$year</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">cal_days_in_month</span><span style="color: #009900;">&#40;</span>CAL_GREGORIAN<span style="color: #339933;">,</span> <span style="color: #cc66cc;">2</span><span style="color: #339933;">,</span> <span style="color: #000088;">$year</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">===</span> <span style="color: #cc66cc;">29</span><span style="color: #009900;">&#41;</span> ? <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h1>Exemple</h1>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>isLeapYear<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2012</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Cette année est une année bissextile.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span>
<span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Cette année n'est pas une année bissextile.&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">// Affiche Cette année est une année bissextile.</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h1>Source</h1>
<p><a href="/sources/isLeapYear.phps">Télécharger la source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.julien-breux.com/2009/02/21/fonction-php-verifier-si-une-annee-est-bissextile/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

