<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_b%C3%A1sico_de_PHP%2FArreglo_13</id>
	<title>Curso básico de PHP/Arreglo 13 - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.cabal.mx/index.php?action=history&amp;feed=atom&amp;title=Curso_b%C3%A1sico_de_PHP%2FArreglo_13"/>
	<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Curso_b%C3%A1sico_de_PHP/Arreglo_13&amp;action=history"/>
	<updated>2026-05-18T11:13:09Z</updated>
	<subtitle>Historial de revisiones para esta página en el wiki</subtitle>
	<generator>MediaWiki 1.32.1</generator>
	<entry>
		<id>http://wiki.cabal.mx/index.php?title=Curso_b%C3%A1sico_de_PHP/Arreglo_13&amp;diff=131903&amp;oldid=prev</id>
		<title>Rrc: /* Arreglo13 */</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Curso_b%C3%A1sico_de_PHP/Arreglo_13&amp;diff=131903&amp;oldid=prev"/>
		<updated>2021-03-14T11:35:30Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Arreglo13&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisión del 11:35 14 mar 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l52&quot; &gt;Línea 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo = array();&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo = array();&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/del&gt;&amp;#039;0&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;} &lt;/del&gt;= &amp;#039;Caracas&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;&amp;#039;0&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;= &amp;#039;Caracas&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/del&gt;&amp;#039;Caracas&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;} &lt;/del&gt;= &amp;#039;Venezuela&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;&amp;#039;Caracas&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;= &amp;#039;Venezuela&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/del&gt;&amp;#039;1&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;} &lt;/del&gt;= &amp;#039;Guadalajara&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;&amp;#039;1&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;= &amp;#039;Guadalajara&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/del&gt;&amp;#039;Guadalajara&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;} &lt;/del&gt;= &amp;#039;Mexico&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;&amp;#039;Guadalajara&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;= &amp;#039;Mexico&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/del&gt;&amp;#039;2&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;} &lt;/del&gt;= &amp;#039;Paris&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;&amp;#039;2&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;= &amp;#039;Paris&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/del&gt;&amp;#039;Paris&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;} &lt;/del&gt;= &amp;#039;Francia&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;&amp;#039;Paris&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;= &amp;#039;Francia&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/del&gt;&amp;#039;3&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;} &lt;/del&gt;= &amp;#039;Tokyo&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;&amp;#039;3&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;= &amp;#039;Tokyo&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/del&gt;&amp;#039;Tokyo&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;} &lt;/del&gt;= &amp;#039;Japon&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       $CiudadInfo&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;&amp;#039;Tokyo&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;= &amp;#039;Japon&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l86&quot; &gt;Línea 86:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línea 86:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       print( &amp;quot;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       print( &amp;quot;&amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;               &amp;lt;p class=\&amp;quot;SubTitleFont\&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;               &amp;lt;p class=\&amp;quot;SubTitleFont\&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 \$Cornucopia&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/del&gt;&amp;#039;Fruta&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;} &lt;/del&gt;la segunda dimensión con foreach()&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;                 \$Cornucopia&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;&amp;#039;Fruta&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;la segunda dimensión con foreach()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;               &amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;               &amp;lt;/p&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;               &amp;lt;p class=\&amp;quot;LargeTextFont\&amp;quot;&amp;gt;&amp;quot; );&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;               &amp;lt;p class=\&amp;quot;LargeTextFont\&amp;quot;&amp;gt;&amp;quot; );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       EscribeTodo( $Cornucopia&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{&lt;/del&gt;&amp;#039;Fruta&amp;#039;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;} &lt;/del&gt;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       EscribeTodo( $Cornucopia&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/ins&gt;&amp;#039;Fruta&amp;#039;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;] &lt;/ins&gt;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       print( &amp;quot;&amp;lt;/p&amp;gt;&amp;quot; );&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       print( &amp;quot;&amp;lt;/p&amp;gt;&amp;quot; );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       require_once( &amp;quot;incPie5.php&amp;quot; );&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       require_once( &amp;quot;incPie5.php&amp;quot; );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.cabal.mx/index.php?title=Curso_b%C3%A1sico_de_PHP/Arreglo_13&amp;diff=121695&amp;oldid=prev</id>
		<title>Rrc en 04:54 12 sep 2016</title>
		<link rel="alternate" type="text/html" href="http://wiki.cabal.mx/index.php?title=Curso_b%C3%A1sico_de_PHP/Arreglo_13&amp;diff=121695&amp;oldid=prev"/>
		<updated>2016-09-12T04:54:00Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
* [[:#Arreglo13 | Arreglo 13]]&lt;br /&gt;
** [[:#Contenidos de Cabeza5.inc | Contenidos de Cabeza5.inc]]&lt;br /&gt;
** [[:#Contenidos de incPie5.php | Contenidos de incPie5.php]]&lt;br /&gt;
** [[:#Contenidos de clase.css | Contenidos de clase.css]]&lt;br /&gt;
** [[:#Explicación | Explicación]]&lt;br /&gt;
** [[:#Ejecutarlo | Ejecutarlo]]&lt;br /&gt;
** [[:#Descargarlo | Descargarlo]]&lt;br /&gt;
&lt;br /&gt;
== Arreglo13 ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot; line=&amp;quot;GESHI_FANCY_LINE_NUMBERS&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
  require_once( &amp;quot;Cabeza5.inc&amp;quot; );&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
  &amp;lt;body&amp;gt;&lt;br /&gt;
    &amp;lt;?php&lt;br /&gt;
      /*&lt;br /&gt;
       * foreach()&lt;br /&gt;
       *&lt;br /&gt;
       * PHP 4 (PHP3 no) incluye una construccion foreach, tal como perl y &lt;br /&gt;
       * algunos otros lenguajes. Esto simplemente da un modo facil de iterar &lt;br /&gt;
       * sobre matrices. foreach funciona solamente con matrices y devolvera un&lt;br /&gt;
       * error si se intenta utilizar con otro tipo de datos o variables no&lt;br /&gt;
       * inicializadas. Hay dos sintaxis; la segunda es una extension menor, &lt;br /&gt;
       * pero util de la primera: &lt;br /&gt;
       *&lt;br /&gt;
       * foreach(expresion_array as $value) sentencia&lt;br /&gt;
       * foreach(expresion_array as $key =&amp;gt; $value) sentencia&lt;br /&gt;
       *&lt;br /&gt;
       * La primera forma recorre el array dado por expresion_array. En cada &lt;br /&gt;
       * iteracion, el valor del elemento actual se asigna a $value y el &lt;br /&gt;
       * puntero interno del array se avanza en una unidad (asi en el siguiente&lt;br /&gt;
       * paso, se estara mirando el elemento siguiente). &lt;br /&gt;
       * La segunda manera hace lo mismo, salvo que la clave del elemento &lt;br /&gt;
       * actual sera asignada a la variable $key en cada iteracion. &lt;br /&gt;
       * Nota: Cuando foreach comienza su primera ejecucion, el puntero interno&lt;br /&gt;
       *       a la matriz se reinicia automaticamente al primer elemento de la&lt;br /&gt;
       *       matriz. Esto significa que no se necesita llamar a reset() antes&lt;br /&gt;
       *       de un bucle foreach.&lt;br /&gt;
       * Nota: Hay que tener en cuenta queforeach trabaja con una copia de la &lt;br /&gt;
       *       matriz especificada y no la lista en si, por ello el puntero de&lt;br /&gt;
       *       la lista no es modificado como en la funcion each(), y los &lt;br /&gt;
       *       cambios en el elemento de la matriz retornado no afectan a la&lt;br /&gt;
       *       matriz original. De todas maneras el puntero interno a la matriz&lt;br /&gt;
       *       original avanza al procesar la matriz. suponiendo que bucle&lt;br /&gt;
       *       foreach se ejecuta hasta el final, el puntero interno a la&lt;br /&gt;
       *       matriz estar/aacute; al final de la matriz. &lt;br /&gt;
       * Nota: foreach no soporta la caracteristica de suprimir mensajes de&lt;br /&gt;
       *       error con &amp;#039;@&amp;#039;&lt;br /&gt;
       */&lt;br /&gt;
     &lt;br /&gt;
      $CiudadInfo = array();&lt;br /&gt;
      $CiudadInfo{&amp;#039;0&amp;#039;} = &amp;#039;Caracas&amp;#039;;&lt;br /&gt;
      $CiudadInfo{&amp;#039;Caracas&amp;#039;} = &amp;#039;Venezuela&amp;#039;;&lt;br /&gt;
      $CiudadInfo{&amp;#039;1&amp;#039;} = &amp;#039;Guadalajara&amp;#039;;&lt;br /&gt;
      $CiudadInfo{&amp;#039;Guadalajara&amp;#039;} = &amp;#039;Mexico&amp;#039;;&lt;br /&gt;
      $CiudadInfo{&amp;#039;2&amp;#039;} = &amp;#039;Paris&amp;#039;;&lt;br /&gt;
      $CiudadInfo{&amp;#039;Paris&amp;#039;} = &amp;#039;Francia&amp;#039;;&lt;br /&gt;
      $CiudadInfo{&amp;#039;3&amp;#039;} = &amp;#039;Tokyo&amp;#039;;&lt;br /&gt;
      $CiudadInfo{&amp;#039;Tokyo&amp;#039;} = &amp;#039;Japon&amp;#039;;&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
      $Cornucopia = array( &amp;#039;Fruta&amp;#039; =&amp;gt; array( &amp;#039;Rojo&amp;#039; =&amp;gt; &amp;#039;Manzana&amp;#039;, &lt;br /&gt;
                                             &amp;#039;Amarillo&amp;#039; =&amp;gt; &amp;#039;Platano&amp;#039;,&lt;br /&gt;
                                             &amp;#039;Naranja&amp;#039; =&amp;gt; &amp;#039;Naranja&amp;#039; ) );&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
      function EscribeTodo( $CiudadAreglo )&lt;br /&gt;
      {&lt;br /&gt;
        foreach( $CiudadAreglo as $NombreValor )&lt;br /&gt;
          print( &amp;quot;$NombreValor&amp;lt;br /&amp;gt;&amp;quot; );&lt;br /&gt;
      }&lt;br /&gt;
 &lt;br /&gt;
      print( &amp;quot;&amp;lt;p class=\&amp;quot;SubTitleFont\&amp;quot;&amp;gt;&lt;br /&gt;
                \$CiudadInfo 1 dimensión con foreach()&lt;br /&gt;
              &amp;lt;/p&amp;gt;&lt;br /&gt;
              &amp;lt;p class=\&amp;quot;LargeTextFont\&amp;quot;&amp;gt;&amp;quot; );&lt;br /&gt;
      EscribeTodo( $CiudadInfo );&lt;br /&gt;
      print( &amp;quot;&amp;lt;/p&amp;gt;&lt;br /&gt;
              &amp;lt;p class=\&amp;quot;SubTitleFont\&amp;quot;&amp;gt;&lt;br /&gt;
                \$Cornucopia - La primera de 2 dimensiones con foreach()&lt;br /&gt;
              &amp;lt;/p&amp;gt;&lt;br /&gt;
              &amp;lt;p class=\&amp;quot;LargeTextFont\&amp;quot;&amp;gt;&amp;quot; );&lt;br /&gt;
      EscribeTodo( $Cornucopia );&lt;br /&gt;
      print( &amp;quot;&amp;lt;/p&amp;gt;&lt;br /&gt;
              &amp;lt;p class=\&amp;quot;SubTitleFont\&amp;quot;&amp;gt;&lt;br /&gt;
                \$Cornucopia{&amp;#039;Fruta&amp;#039;} la segunda dimensión con foreach()&lt;br /&gt;
              &amp;lt;/p&amp;gt;&lt;br /&gt;
              &amp;lt;p class=\&amp;quot;LargeTextFont\&amp;quot;&amp;gt;&amp;quot; );&lt;br /&gt;
      EscribeTodo( $Cornucopia{&amp;#039;Fruta&amp;#039;} );&lt;br /&gt;
      print( &amp;quot;&amp;lt;/p&amp;gt;&amp;quot; );&lt;br /&gt;
      require_once( &amp;quot;incPie5.php&amp;quot; );&lt;br /&gt;
    ?&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Contenidos de Cabeza5.inc ===&lt;br /&gt;
[http://www.linuxcabal.org/PHPClase/Cabeza5.inc.txt Ver los contenidos de Cabeza5.inc]&lt;br /&gt;
&lt;br /&gt;
=== Contenidos de incPie5.php ===&lt;br /&gt;
[http://www.linuxcabal.org/PHPClase/incPie5.phps Ver los contenidos de incPie5.php]&lt;br /&gt;
&lt;br /&gt;
=== Contenidos de clase.css ===&lt;br /&gt;
[http://www.linuxcabal.org/PHPClase/clase.css.txt Ver los contenidos de clase.css]&lt;br /&gt;
&lt;br /&gt;
=== Explicación ===&lt;br /&gt;
&lt;br /&gt;
=== Ejecutarlo ===&lt;br /&gt;
[http://www.linuxcabal.org/PHPClase/Array13.php Ejecutar el código de Arreglo 13]&lt;br /&gt;
&lt;br /&gt;
=== Descargarlo ===&lt;br /&gt;
[http://www.linuxcabal.org/PHPClase/Array13.phps Descargar el código de Arreglo 13]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:PHP]]&lt;br /&gt;
[[Category:PHPCabal]]&lt;br /&gt;
[[Category:CursoPHP]]&lt;/div&gt;</summary>
		<author><name>Rrc</name></author>
		
	</entry>
</feed>