<?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>ZoneArtCSS &#124; Desarrollo Web, Diseño de páginas Web, Aplicaciones Móviles, Notas de Tecnología &#187; año bisiesto en php</title>
	<atom:link href="http://www.zoneartcss.com/tag/ano-bisiesto-en-php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zoneartcss.com</link>
	<description>Tips de Diseño y Desarrollo Web</description>
	<lastBuildDate>Wed, 26 Oct 2011 18:31:39 +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>Saber si el año es Bisiesto en PHP</title>
		<link>http://www.zoneartcss.com/tips/saber-si-el-ano-es-bisiesto-en-php/</link>
		<comments>http://www.zoneartcss.com/tips/saber-si-el-ano-es-bisiesto-en-php/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 19:29:31 +0000</pubDate>
		<dc:creator>miguelortega</dc:creator>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[30 febrero]]></category>
		<category><![CDATA[año bisiesto en php]]></category>
		<category><![CDATA[bisiesto]]></category>
		<category><![CDATA[bisiesto php]]></category>
		<category><![CDATA[miguel ortega]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.zoneartcss.com/?p=977</guid>
		<description><![CDATA[Saber si el año es Bisiesto con PHP Con este sencillo codigo podemos saber si el año es bisiesto o no con php, esto nos puede servir algún día espero que les ayude en algo. Primero hacemos la funcion donde decimos si es 29 de febrero &#60;?php function Bisiesto&#40;$anyo&#41;&#123; return checkdate&#40;02,29,$anyo&#41;; &#125; $actual = date&#40;&#34;Y&#34;&#41;; $sig = $actual+1; if&#40;Bisiesto&#40;$actual&#41;&#41;&#123; echo $actual.&#34; es bisiesto&#60;br&#62;&#34;; &#125;else&#123; echo $actual.&#34; no es bisiesto&#60;br&#62;&#34;; &#125; &#160; if&#40;Bisiesto&#40;$sig&#41;&#41;&#123; echo $sig.&#34; es [...]]]></description>
			<content:encoded><![CDATA[<div id=HOTWordsTxt name=HOTWordsTxt><p style="text-align: center;"><img class="aligncenter" src="http://zoneartcss.com/wp-content/bisiesto_php.jpg" alt="año bisiesto con php" width="500" height="130" /></p>
<h4 style="text-align: center;"><span style="color: #ff9900;">Saber si el año es Bisiesto con PHP</span></h4>
<p>Con este sencillo codigo podemos saber si el año es bisiesto o no con php, esto nos puede servir algún día espero que les ayude en algo.</p>
<p>Primero hacemos la funcion donde decimos si es 29 de febrero<br />
<span id="more-977"></span></p>

<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: #000000; font-weight: bold;">function</span> Bisiesto<span style="color: #009900;">&#40;</span><span style="color: #000088;">$anyo</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #990000;">checkdate</span><span style="color: #009900;">&#40;</span><span style="color: #208080;">02</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">29</span><span style="color: #339933;">,</span><span style="color: #000088;">$anyo</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000088;">$actual</span> <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Y&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sig</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$actual</span><span style="color: #339933;">+</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>Bisiesto<span style="color: #009900;">&#40;</span><span style="color: #000088;">$actual</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: #000088;">$actual</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; es bisiesto&lt;br&gt;&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: #000088;">$actual</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; no es bisiesto&lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span>Bisiesto<span style="color: #009900;">&#40;</span><span style="color: #000088;">$sig</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: #000088;">$sig</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; es bisiesto&lt;br&gt;&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: #000088;">$sig</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; no es bisiesto&lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Espero que les sea de utilidad.<br />
Saludos.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.zoneartcss.com/tips/saber-si-el-ano-es-bisiesto-en-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

