<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3</id>
	<title>Llenguatges de guions de servidor. PHP. Introducció - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3"/>
	<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;action=history"/>
	<updated>2026-08-30T02:22:45Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297109&amp;oldid=prev</id>
		<title>Joan: /* Entrega 2: Exercici de classe 12-nov-2019 (B); 19-nov-2019 (A) */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297109&amp;oldid=prev"/>
		<updated>2020-11-19T15:44:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Entrega 2: Exercici de classe 12-nov-2019 (B); 19-nov-2019 (A)&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;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 15:44, 19 nov 2020&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-l222&quot; &gt;Línia 222:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 222:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;Fer les taules de multiplicar amb PHP, i el bucle for (necessitaràs dos bucles for, oi?)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;Fer les taules de multiplicar amb PHP, i el bucle for (necessitaràs dos bucles for, oi?)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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 class='diff-marker'&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;1. Fer-ho amb un script PHP per la consola&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, i també en forma de pàgina web (dues versions)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;1. Fer-ho amb un script PHP per la consola&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='diff-marker'&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;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;$ php taules_multiplicar.php&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;$ php taules_multiplicar.php&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297108&amp;oldid=prev</id>
		<title>Joan: /* Ex1: Taules de multiplicar */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297108&amp;oldid=prev"/>
		<updated>2020-11-19T15:44:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Ex1: Taules de multiplicar&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;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 15:44, 19 nov 2020&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-l222&quot; &gt;Línia 222:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 222:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;Fer les taules de multiplicar amb PHP, i el bucle for (necessitaràs dos bucles for, oi?)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;Fer les taules de multiplicar amb PHP, i el bucle for (necessitaràs dos bucles for, oi?)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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 class='diff-marker'&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;1. Fer-ho amb un script PHP per la consola&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;1. Fer-ho amb un script PHP per la consola&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, i també en forma de pàgina web (dues versions)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;$ php taules_multiplicar.php&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;$ php taules_multiplicar.php&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297079&amp;oldid=prev</id>
		<title>Joan: /* Taules de multiplicar */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297079&amp;oldid=prev"/>
		<updated>2020-11-12T15:55:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Taules de multiplicar&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;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 15:55, 12 nov 2020&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-l219&quot; &gt;Línia 219:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 219:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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 class='diff-marker'&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;==Entrega 2: Exercici de classe 12-nov-2019 (B); 19-nov-2019 (A)==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;==Entrega 2: Exercici de classe 12-nov-2019 (B); 19-nov-2019 (A)==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;===Taules de multiplicar===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;===&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Ex1: &lt;/ins&gt;Taules de multiplicar===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;Fer les taules de multiplicar amb PHP, i el bucle for (necessitaràs dos bucles for, oi?)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;Fer les taules de multiplicar amb PHP, i el bucle for (necessitaràs dos bucles for, oi?)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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;/table&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297078&amp;oldid=prev</id>
		<title>Joan: /* Entrega 2: Exercici de classe 7-nov-2019 */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297078&amp;oldid=prev"/>
		<updated>2020-11-12T15:51:36Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Entrega 2: Exercici de classe 7-nov-2019&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;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 15:51, 12 nov 2020&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-l218&quot; &gt;Línia 218:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 218:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;Recorda la '''normativa''' per entregar les pràctiques al Google Classroom: [[ASIX-M10-UF2#Normativa_d.27entrega_de_les_pr.C3.A0ctiques_al_Google_Classroom]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;Recorda la '''normativa''' per entregar les pràctiques al Google Classroom: [[ASIX-M10-UF2#Normativa_d.27entrega_de_les_pr.C3.A0ctiques_al_Google_Classroom]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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 class='diff-marker'&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;==Entrega 2: Exercici de classe &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;7&lt;/del&gt;-nov-2019==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;==Entrega 2: Exercici de classe &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;12&lt;/ins&gt;-nov-2019 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(B); 19-nov-2019 (A)==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;Fer les taules de multiplicar amb PHP, i el bucle for&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;===Taules de multiplicar=&lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&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;Fer les taules de multiplicar amb PHP, i el bucle for &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;(necessitaràs dos bucles for, oi?)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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 class='diff-marker'&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;1. Fer-ho amb un script PHP per la consola&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;1. Fer-ho amb un script PHP per la consola&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297077&amp;oldid=prev</id>
		<title>Joan: /* Exercici de classe: 23-nov-2018 */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297077&amp;oldid=prev"/>
		<updated>2020-11-12T15:50:12Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Exercici de classe: 23-nov-2018&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;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 15:50, 12 nov 2020&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-l232&quot; &gt;Línia 232:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 232:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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 class='diff-marker'&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;==&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Exercici de classe&lt;/del&gt;: &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;23-nov-2018&lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;==&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;=Ex2&lt;/ins&gt;: &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;programar strrev()=&lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;A PHP hem vist que existeix la funció:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;A PHP hem vist que existeix la funció:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;*strrev — Reverse a string&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;*strrev — Reverse a string&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297076&amp;oldid=prev</id>
		<title>Joan: /* Entrega 1 */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=297076&amp;oldid=prev"/>
		<updated>2020-11-12T15:49:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Entrega 1&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;ca&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Versió més antiga&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revisió del 15:49, 12 nov 2020&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-l212&quot; &gt;Línia 212:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Línia 212:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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 class='diff-marker'&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;==Entrega 1==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;==Entrega 1==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Aquesta és l'entrega principal de la pràctica. És el recull de tots els exercicis que has anat practicant.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;Tota la documentació generada (scripts PHP bàsicament) la inclouràs en un fitxer comprimit i l'entregaràs en el Google Classroom. No t'has de restringir als exemples que proposa el tutorial, sinó que també inclouràs totes les proves que fas. El professor també demana incloure el fitxer LLEGEIX-ME.txt on expliquis les dificultats i descobertes que has realitzat.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;Tota la documentació generada (scripts PHP bàsicament) la inclouràs en un fitxer comprimit i l'entregaràs en el Google Classroom. No t'has de restringir als exemples que proposa el tutorial, sinó que també inclouràs totes les proves que fas. El professor també demana incloure el fitxer LLEGEIX-ME.txt on expliquis les dificultats i descobertes que has realitzat.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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 class='diff-marker'&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;Recorda la '''normativa''' per entregar les pràctiques al Google Classroom: [[ASIX-M10-UF2#Normativa_d.27entrega_de_les_pr.C3.A0ctiques_al_Google_Classroom]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;Recorda la '''normativa''' per entregar les pràctiques al Google Classroom: [[ASIX-M10-UF2#Normativa_d.27entrega_de_les_pr.C3.A0ctiques_al_Google_Classroom]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;==Entrega 2: Exercici de classe 7-nov-2019==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;==Entrega 2: Exercici de classe 7-nov-2019==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;Fer les taules de multiplicar amb PHP, i el bucle for.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;Fer les taules de multiplicar amb PHP, i el bucle for.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=258639&amp;oldid=prev</id>
		<title>Joan: /* Exercici de classe (formulari): 21-nov-2019 */</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Llenguatges_de_guions_de_servidor._PHP._Introducci%C3%B3&amp;diff=258639&amp;oldid=prev"/>
		<updated>2019-11-21T16:15:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Exercici de classe (formulari): 21-nov-2019&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Objectius==&lt;br /&gt;
PHP és el llenguatge de script de referència per a fer pàgines web (cantó de servidor). No és l'únic (amb tecnologia Microsoft existeixen les pàgines ASP-Active Server Pages i ASPX-.NET Framework). També existeixen les pàgines JSP (Java), però en aquest cas no corren sobre un servidor web Apache sinó sobre un servidor Tomcat.&lt;br /&gt;
&lt;br /&gt;
Allò normal és utilitzar PHP per a servir pàgnes HTML, però no té perquè ser exclusiu: podem utilitzar PHP com a llenguatge per fer tasques que no tiguin res a veure amb la navegació web, i no cal utilitzar un navegador web com el Firefox. Per exemple, podem executar un fitxer PHP que contingui una connexió a una base de dades i fer updates sobre les 1000 files de la taula empleat, i executar-no en línia de consola:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ php update_empleats.php&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
En aquest cas, l'objectiu no és visualitzar una pàgina web en el Mozilla.&lt;br /&gt;
&lt;br /&gt;
Un altre exemple, fitxer prova.php:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
echo &amp;quot;hola&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
echo &amp;quot;hola\n&amp;quot;;&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ php prova.php&lt;br /&gt;
hola&amp;lt;br /&amp;gt;hola&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
En aquest cas el tag &amp;lt;br /&amp;gt; no serveix per a res, doncs només l'interpreta bé un navegador web.&lt;br /&gt;
&lt;br /&gt;
Dit això, l´us normal del PHP és per fer que un servidor web com l'Apache serveixi pàgines web al nostre client web (el Mozilla Firefox).&lt;br /&gt;
&lt;br /&gt;
'''nota'''. Per poder utilitzar PHP en línia de comandes es necessita el paquet ''php5-cli'':&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-cache search php5-cli&lt;br /&gt;
php5-cli - command-line interpreter for the php5 scripting language&lt;br /&gt;
&lt;br /&gt;
$ man php&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Documentació==&lt;br /&gt;
pàgina web oficial:&lt;br /&gt;
*http://www.php.net/&lt;br /&gt;
Documentació:&lt;br /&gt;
*Documentació oficial anglès: http://www.php.net/manual/en/&lt;br /&gt;
*Documentació oficial castellà: http://www.php.net/manual/es/&lt;br /&gt;
*Referència del llenguatge: http://www.php.net/manual/en/langref.php&lt;br /&gt;
*Referència de les funcions: http://www.php.net/manual/en/funcref.php&lt;br /&gt;
&lt;br /&gt;
==Gestió dels errors i logging==&lt;br /&gt;
El normal quan programem amb PHP és tenir errors i warnings. Mostrar-los és molt necessari mentre estem desenvolupant el projecte, tot i que en la fase de producció (quan ja està en funcionament l'aplicació) s'han de deshabilitar els warnings (i els errors).&lt;br /&gt;
&lt;br /&gt;
Tenim dues possibilitats que són equivalents:&lt;br /&gt;
*controlar la sortida dels missatges d'errors i warnings per pantalla&lt;br /&gt;
*mirar els logs.&lt;br /&gt;
El comportament de la gestió dels errors i logging està en el fitxer php.ini.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo joe /etc/php5/apache2/php.ini&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
; Error handling and logging ;&lt;br /&gt;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;&lt;br /&gt;
&lt;br /&gt;
; This directive informs PHP of which errors, warnings and notices you would like&lt;br /&gt;
; it to take action for. The recommended way of setting values for this&lt;br /&gt;
; directive is through the use of the error level constants and bitwise&lt;br /&gt;
; operators. The error level constants are below here for convenience as well as&lt;br /&gt;
; some common settings and their meanings.&lt;br /&gt;
; By default, PHP is set to take action on all errors, notices and warnings EXCEPT&lt;br /&gt;
; those related to E_NOTICE and E_STRICT, which together cover best practices and &lt;br /&gt;
; recommended coding standards in PHP. For performance reasons, this is the&lt;br /&gt;
; recommend error reporting setting. Your production server shouldn't be wasting&lt;br /&gt;
; resources complaining about best practices and coding standards. That's what  &lt;br /&gt;
; development servers and development settings are for.&lt;br /&gt;
; Note: The php.ini-development file has this setting as E_ALL | E_STRICT. This&lt;br /&gt;
; means it pretty much reports everything which is exactly what you want during&lt;br /&gt;
; development and early testing.&lt;br /&gt;
;&lt;br /&gt;
; Error Level Constants:&lt;br /&gt;
; E_ALL             - All errors and warnings (includes E_STRICT as of PHP 6.0.0)&lt;br /&gt;
; E_ERROR           - fatal run-time errors&lt;br /&gt;
; E_RECOVERABLE_ERROR  - almost fatal run-time errors&lt;br /&gt;
; E_WARNING         - run-time warnings (non-fatal errors)&lt;br /&gt;
; E_PARSE           - compile-time parse errors&lt;br /&gt;
; E_NOTICE          - run-time notices (these are warnings which often result&lt;br /&gt;
;                     from a bug in your code, but it's possible that it was &lt;br /&gt;
;                     intentional (e.g., using an uninitialized variable and &lt;br /&gt;
;                     relying on the fact it's automatically initialized to an&lt;br /&gt;
;                     empty string)&lt;br /&gt;
; E_STRICT          - run-time notices, enable to have PHP suggest changes&lt;br /&gt;
;                     to your code which will ensure the best interoperability&lt;br /&gt;
;                     and forward compatibility of your code&lt;br /&gt;
; E_CORE_ERROR      - fatal errors that occur during PHP's initial startup&lt;br /&gt;
; E_CORE_WARNING    - warnings (non-fatal errors) that occur during PHP's &lt;br /&gt;
;                     initial startup&lt;br /&gt;
; E_COMPILE_ERROR   - fatal compile-time errors&lt;br /&gt;
; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)&lt;br /&gt;
; E_USER_ERROR      - user-generated error message&lt;br /&gt;
; E_USER_WARNING    - user-generated warning message&lt;br /&gt;
; E_USER_NOTICE     - user-generated notice message &lt;br /&gt;
; E_DEPRECATED      - warn about code that will not work in future versions&lt;br /&gt;
;                     of PHP&lt;br /&gt;
; E_USER_DEPRECATED - user-generated deprecation warnings&lt;br /&gt;
;&lt;br /&gt;
; Common Values:&lt;br /&gt;
;   E_ALL &amp;amp; ~E_NOTICE  (Show all errors, except for notices and coding standards warnings.)&lt;br /&gt;
;   E_ALL &amp;amp; ~E_NOTICE | E_STRICT  (Show all errors, except for notices)&lt;br /&gt;
;   E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR  (Show only errors)&lt;br /&gt;
;   E_ALL | E_STRICT  (Show all errors, warnings and notices including coding standards.)&lt;br /&gt;
; Default Value: E_ALL &amp;amp; ~E_NOTICE&lt;br /&gt;
; Development Value: E_ALL | E_STRICT&lt;br /&gt;
; Production Value: E_ALL &amp;amp; ~E_DEPRECATED&lt;br /&gt;
; http://php.net/error-reporting&lt;br /&gt;
error_reporting = E_ALL &amp;amp; ~E_DEPRECATED&lt;br /&gt;
&lt;br /&gt;
; This directive controls whether or not and where PHP will output errors,&lt;br /&gt;
; notices and warnings too. Error output is very useful during development, but&lt;br /&gt;
; it could be very dangerous in production environments. Depending on the code &lt;br /&gt;
; which is triggering the error, sensitive information could potentially leak  &lt;br /&gt;
; out of your application such as database usernames and passwords or worse.   &lt;br /&gt;
; It's recommended that errors be logged on production servers rather than     &lt;br /&gt;
; having the errors sent to STDOUT.&lt;br /&gt;
; Possible Values:&lt;br /&gt;
;   Off = Do not display any errors&lt;br /&gt;
;   stderr = Display errors to STDERR (affects only CGI/CLI binaries!)&lt;br /&gt;
;   On or stdout = Display errors to STDOUT&lt;br /&gt;
; Default Value: On&lt;br /&gt;
; Development Value: On&lt;br /&gt;
; Production Value: Off&lt;br /&gt;
; http://php.net/display-errors&lt;br /&gt;
display_errors = On             &amp;lt;&amp;lt;==== aquesta és la línia que s'ha de canviar&lt;br /&gt;
&lt;br /&gt;
; The display of errors which occur during PHP's startup sequence are handled&lt;br /&gt;
; separately from display_errors. PHP's default behavior is to suppress those&lt;br /&gt;
; errors from clients. Turning the display of startup errors on can be useful in&lt;br /&gt;
; debugging configuration problems. But, it's strongly recommended that you&lt;br /&gt;
; leave this setting off on production servers.&lt;br /&gt;
; Default Value: Off&lt;br /&gt;
; Development Value: On&lt;br /&gt;
; Production Value: Off&lt;br /&gt;
; http://php.net/display-startup-errors&lt;br /&gt;
display_startup_errors = Off&lt;br /&gt;
&lt;br /&gt;
; Besides displaying errors, PHP can also log errors to locations such as a&lt;br /&gt;
; server-specific log, STDERR, or a location specified by the error_log&lt;br /&gt;
; directive found below. While errors should not be displayed on productions&lt;br /&gt;
; servers they should still be monitored and logging is a great way to do that.&lt;br /&gt;
; Default Value: Off&lt;br /&gt;
; Development Value: On&lt;br /&gt;
; Production Value: On &lt;br /&gt;
; http://php.net/log-errors&lt;br /&gt;
log_errors = On&lt;br /&gt;
&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Si fem algun canvi hem de reiniciar l'Apache:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo /etc/init.d/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Com veiem, necessitem posar ''display_errors = On'' per veure els missatges, i també es pot controlar quin és el nivell de missatges que apareixen: ''error_reporting = E_ALL &amp;amp; ~E_DEPRECATED''.&lt;br /&gt;
&lt;br /&gt;
També podem mirar en els log. Veiem que tenim l'opció ''log_errors = On'', que és l'opció correcta, i ara només ens falta saber on estan els log. Ho podem veure a varis llocs. &lt;br /&gt;
&lt;br /&gt;
El primer lloc és /etc/apache2/apache2.conf, que és el fitxer de configuració principal&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ joe /etc/apache2/apache2.conf&lt;br /&gt;
...&lt;br /&gt;
# ErrorLog: The location of the error log file.&lt;br /&gt;
# If you do not specify an ErrorLog directive within a &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
# container, error messages relating to that virtual host will be&lt;br /&gt;
# logged here.  If you *do* define an error logfile for a &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
# container, that host's errors will be logged there and not here.&lt;br /&gt;
#&lt;br /&gt;
ErrorLog /var/log/apache2/error.log&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Després en els diferents sites també podem tenir definida la directiva ''ErrorLog'', que indica la mateixa ruta que abans, o bé podríem posar una ruta específica per a cada site:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ joe /etc/apache2/sites-available/default&lt;br /&gt;
...&lt;br /&gt;
ErrorLog /var/log/apache2/error.log&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Per exemple, en el fitxer /var/log/apache2/error.log podem trobar informació del tipus:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat /var/log/apache2/error.log&lt;br /&gt;
...&lt;br /&gt;
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/imagick.ini on line 1 in Unknown on line 0&lt;br /&gt;
PHP Warning:  Module 'gd' already loaded in Unknown on line 0&lt;br /&gt;
PHP Warning:  Module 'mysql' already loaded in Unknown on line 0&lt;br /&gt;
[Fri Feb 10 01:01:30 2012] [warn] RSA server certificate CommonName (CN) `ubuntu' does NOT match server name!?&lt;br /&gt;
[Fri Feb 10 01:01:30 2012] [notice] Apache/2.2.14 (Ubuntu) PHP/5.3.2-1ubuntu4.10 with Suhosin-Patch mod_ssl/2.2.14 OpenSSL/0.9.8k configured -- resuming normal operations&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Desenvolupament==&lt;br /&gt;
Farem tota la introducció de PHP que es troba a:&lt;br /&gt;
*http://www.w3schools.com/php/default.asp&lt;br /&gt;
PHP Basic, que inclou:&lt;br /&gt;
*PHP HOME: http://www.w3schools.com/php/default.asp&lt;br /&gt;
*PHP Intro: http://www.w3schools.com/php/php_intro.asp&lt;br /&gt;
*PHP Install: http://www.w3schools.com/php/php_install.asp&lt;br /&gt;
*PHP Syntax: http://www.w3schools.com/php/php_syntax.asp&lt;br /&gt;
*PHP Variables: http://www.w3schools.com/php/php_variables.asp&lt;br /&gt;
*PHP String: http://www.w3schools.com/php/php_string.asp&lt;br /&gt;
*PHP Operators: http://www.w3schools.com/php/php_operators.asp&lt;br /&gt;
*PHP If...Else: http://www.w3schools.com/php/php_if_else.asp&lt;br /&gt;
*PHP Switch: http://www.w3schools.com/php/php_switch.asp&lt;br /&gt;
*PHP While Loops: http://www.w3schools.com/php/php_looping.asp&lt;br /&gt;
*PHP For Loops: http://www.w3schools.com/php/php_looping_for.asp&lt;br /&gt;
*PHP Forms: http://www.w3schools.com/php/php_forms.asp&lt;br /&gt;
*PHP $_GET: http://www.w3schools.com/php/php_get.asp&lt;br /&gt;
*PHP $_POST: http://www.w3schools.com/php/php_get.asp&lt;br /&gt;
&lt;br /&gt;
Recorda que vas crear el site http://www.iaw.org, que està associat físicament a la carpeta /var/www/iaw. En aquesta carpeta crearàs el directori php_basic, i aquí dins ficaràs els arxius de prova, per exemple, holamon.php. Podràs comprovar com funciona aquest script accedint a la URL:&lt;br /&gt;
*http://www.iaw.org/php_basic/holamon.php&lt;br /&gt;
&lt;br /&gt;
==Entrega 1==&lt;br /&gt;
Tota la documentació generada (scripts PHP bàsicament) la inclouràs en un fitxer comprimit i l'entregaràs en el Google Classroom. No t'has de restringir als exemples que proposa el tutorial, sinó que també inclouràs totes les proves que fas. El professor també demana incloure el fitxer LLEGEIX-ME.txt on expliquis les dificultats i descobertes que has realitzat.&lt;br /&gt;
&lt;br /&gt;
Recorda la '''normativa''' per entregar les pràctiques al Google Classroom: [[ASIX-M10-UF2#Normativa_d.27entrega_de_les_pr.C3.A0ctiques_al_Google_Classroom]]&lt;br /&gt;
==Entrega 2: Exercici de classe 7-nov-2019==&lt;br /&gt;
Fer les taules de multiplicar amb PHP, i el bucle for.&lt;br /&gt;
&lt;br /&gt;
1. Fer-ho amb un script PHP per la consola&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ php taules_multiplicar.php&lt;br /&gt;
$ php taules_multiplicar.php &amp;gt; taules_multiplicar.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
2. Fer una pàgina web. Formatar-la amb un CSS senzill.&lt;br /&gt;
 &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Exercici de classe: 23-nov-2018==&lt;br /&gt;
A PHP hem vist que existeix la funció:&lt;br /&gt;
*strrev — Reverse a string&lt;br /&gt;
I també hem vist com crear funcions definides per l'usuari.&lt;br /&gt;
&lt;br /&gt;
Defineix la funció ''reverse_string()'' que funcioni de la mateixa manera que ''strrev()''. Pots utilitzar la funció ''substr'':&lt;br /&gt;
*http://php.net/manual/en/function.substr.php&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
$cad = &amp;quot;cadena&amp;quot;;&lt;br /&gt;
echo strrev($cad);&lt;br /&gt;
echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
echo invertir_cadena($cad);&lt;br /&gt;
&lt;br /&gt;
function invertir_cadena($str) {&lt;br /&gt;
	//strlen — Get string length&lt;br /&gt;
	//string substr ( string $string , int $start [, int $length ] )&lt;br /&gt;
	$res = &amp;quot;&amp;quot;;&lt;br /&gt;
	for ($i=strlen($str);$i&amp;gt;=0;$i--) {&lt;br /&gt;
		$res .= substr($str,$i,1);&lt;br /&gt;
	}&lt;br /&gt;
	return $res;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Exercici de classe (formulari): 21-nov-2019==&lt;br /&gt;
Dissenya la pàgina ''canvi_moneda.php'', que conté un formulari amb els següents elements.&lt;br /&gt;
&lt;br /&gt;
*llista desplegable amb dos elements: euro_a_dolar, dolar_a_euro.&lt;br /&gt;
*caixa de text per introduir l'import.&lt;br /&gt;
*botó de submit&lt;br /&gt;
&lt;br /&gt;
La informació es processa en el mateix script, i has de donar una informació del tipus (arrodonim a dos decimals):&lt;br /&gt;
&lt;br /&gt;
*5 euros són 5,55 dòlars&lt;br /&gt;
o bé&lt;br /&gt;
*5 dòlars són 4,51 euros&lt;br /&gt;
&lt;br /&gt;
La solucicó mínima és:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;form action=&amp;quot;canvi_moneda.php&amp;quot; method=&amp;quot;post&amp;quot;&amp;gt;&lt;br /&gt;
Selecciona: &lt;br /&gt;
 &amp;lt;select name=&amp;quot;tipus&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;option value=&amp;quot;euro_a_dolar&amp;quot;&amp;gt;euro a dolar&amp;lt;/option&amp;gt;&lt;br /&gt;
  &amp;lt;option value=&amp;quot;dolar_a_euro&amp;quot;&amp;gt;dolar a euro&amp;lt;/option&amp;gt;&lt;br /&gt;
&amp;lt;/select&amp;gt; &lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Import: &amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;import&amp;quot;&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Calcular&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/form&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php &lt;br /&gt;
if ( isset($_POST[&amp;quot;tipus&amp;quot;]) &amp;amp;&amp;amp; isset($_POST[&amp;quot;tipus&amp;quot;])) { &lt;br /&gt;
&lt;br /&gt;
	$tipus = $_POST[&amp;quot;tipus&amp;quot;];&lt;br /&gt;
	$import = $_POST[&amp;quot;import&amp;quot;];&lt;br /&gt;
	//echo $tipus.&amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
	//echo $import.&amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
	if ($tipus == &amp;quot;euro_a_dolar&amp;quot;) {&lt;br /&gt;
		echo $import.&amp;quot; euros són &amp;quot;.round($import*1.10986,2).&amp;quot; dòlars&amp;quot;; &lt;br /&gt;
	} else {&lt;br /&gt;
		echo $import.&amp;quot; dòlars són &amp;quot;.round($import/1.10986,2).&amp;quot; euros&amp;quot;; &lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Exemples de classe==&lt;br /&gt;
===matrius===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!DOCTYPE html&amp;gt;&lt;br /&gt;
&amp;lt;html&amp;gt;&lt;br /&gt;
&amp;lt;body&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
$array = array(1, 2, 3, 4, 5);&lt;br /&gt;
print_r($array);&lt;br /&gt;
echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
var_dump($array);&lt;br /&gt;
echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
echo $array[0];&lt;br /&gt;
echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
$x = array(&amp;quot;a&amp;quot; =&amp;gt; &amp;quot;red&amp;quot;, &amp;quot;b&amp;quot; =&amp;gt; &amp;quot;green&amp;quot;);  &lt;br /&gt;
$y = array(&amp;quot;c&amp;quot; =&amp;gt; &amp;quot;blue&amp;quot;, &amp;quot;d&amp;quot; =&amp;gt; &amp;quot;yellow&amp;quot;);  &lt;br /&gt;
&lt;br /&gt;
print_r($x);&lt;br /&gt;
echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
var_dump($y);&lt;br /&gt;
echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
echo $x[&amp;quot;a&amp;quot;];&lt;br /&gt;
echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
echo $x[0]; //Notice&lt;br /&gt;
echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
var_dump($x == $y);&lt;br /&gt;
echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
$z = array(&amp;quot;b&amp;quot; =&amp;gt; &amp;quot;green&amp;quot;, &amp;quot;a&amp;quot; =&amp;gt; &amp;quot;red&amp;quot;); &lt;br /&gt;
echo $x[&amp;quot;a&amp;quot;];&lt;br /&gt;
echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;/body&amp;gt;&lt;br /&gt;
&amp;lt;/html&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Recórrer els elements d'un array===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
function trobar_paritat($num) {&lt;br /&gt;
switch ($num % 2) {&lt;br /&gt;
    case 0:&lt;br /&gt;
        echo &amp;quot;el número $num és parell&amp;quot;;&lt;br /&gt;
        break;&lt;br /&gt;
    case 1:&lt;br /&gt;
        echo &amp;quot;el número $num és senar&amp;quot;;&lt;br /&gt;
        break;&lt;br /&gt;
}&lt;br /&gt;
echo &amp;quot;&amp;lt;br /&amp;gt;&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
$numeros = array(28, 23, 34, 654, 11, 43231, 23, 54, 33, 44, 55, 66, 77, 88);&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
for ($x = 0; $x &amp;lt; sizeof($numeros); $x++) {&lt;br /&gt;
    trobar_paritat($numeros[$x]);&lt;br /&gt;
} &lt;br /&gt;
*/&lt;br /&gt;
foreach ($numeros as $value) {&lt;br /&gt;
    trobar_paritat($value);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Curs de PHP (i PHP-MySQL) (pdf)==&lt;br /&gt;
Per als alumnes que volen una llista llarga d'exemples diversos, es proposa seguir aquest pdf, que es comenta a classe:&lt;br /&gt;
*http://xlb.es/Cuaderno-de-Ejercicios-y-Practicas-PHP.pdf&lt;br /&gt;
En cas de què no funcioni l'enllaç, també el pots descarregar aqui:&lt;br /&gt;
*[[Fitxer:Cuaderno-de-Ejercicios-y-Practicas-PHP.pdf]]&lt;br /&gt;
&lt;br /&gt;
==Durarda==&lt;br /&gt;
2 hores&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Autor}}, novembre 2018&lt;br /&gt;
[[Categoria: Institut Jaume Balmes]]&lt;br /&gt;
[[Categoria: ASIX-M09-IAW]]&lt;/div&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
</feed>