<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2144085516740366877</id><updated>2024-09-14T08:07:10.750-03:00</updated><category term="código"/><category term="javascript"/><category term="programação"/><category term="ajax"/><category term="futebol"/><category term="html"/><category term="humor"/><category term="json"/><category term="parecer"/><category term="php"/><category term="publicidade"/><category term="vídeo de segunda-feira"/><category term="vídeos"/><title type='text'>O blog de ​​Dieguito Arregui</title><subtitle type='html'>Programador PHP e HTML. Ex atenção na quiosque</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://diegoarregui-br.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2144085516740366877/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://diegoarregui-br.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Diego Arregui</name><uri>http://www.blogger.com/profile/17368417037239614359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0zsb7H9PZYkCLpu7xkCTvT0Cgh8q_UWAOJY7aTHT0D_grNyRv-y6IeNJwNU4E8bbNxO6DA3GTNxkqhl8ex5hUQ1MHU5r2nhtou1Si_LdEUC7SW_LyfTKm9PVkPmfUTg/s1600/diegoarregui_400x400.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2144085516740366877.post-688226946028901881</id><published>2011-04-29T09:55:00.002-03:00</published><updated>2011-04-29T09:55:00.223-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ajax"/><category scheme="http://www.blogger.com/atom/ns#" term="código"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="json"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="programação"/><title type='text'>Ler e escrever JSON com PHP</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-bottom: 0.5em; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIQQ0JHguDEc8aIBjvDg1ymyIBW9pOjPmD9_94mJJoKwU0DiEPx2DgcdAplfehRSD8luGsUxgVMYUo1fI0qT1SL424A_UM957gTA1SCMtCHegUVQeg7qDOGjP8gcW7sof19xSMUxsHeI5e/s1600/json160.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIQQ0JHguDEc8aIBjvDg1ymyIBW9pOjPmD9_94mJJoKwU0DiEPx2DgcdAplfehRSD8luGsUxgVMYUo1fI0qT1SL424A_UM957gTA1SCMtCHegUVQeg7qDOGjP8gcW7sof19xSMUxsHeI5e/s1600/json160.gif&quot; style=&quot;cursor: move;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 13px; padding-top: 4px; text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Logo JSON&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Há poucos dias no trabalho, meu chefe me mandou algumas &lt;b&gt;tarefas de programação&lt;/b&gt;. &lt;b&gt;Fiquei muito feliz&lt;/b&gt;. Como eu disse há algum tempo que não estava programada, porque eu tinha sido atribuído outras tarefas. Tomado em um júnior e enviá-lo &lt;b&gt;para executar tarefas&lt;/b&gt;. Então eu nunca vou mudar de juniores &amp;nbsp; :)&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Mas as queixas de lado, eu estou a ponto. Acontece que eu estava contratado para fazer um &lt;b&gt;script&lt;/b&gt; &lt;b&gt;&lt;a href=&quot;http://www.php.net/&quot;&gt;PHP&lt;/a&gt;&lt;/b&gt; que gera um arquivo &lt;i&gt;&lt;b&gt;json&lt;/b&gt;&lt;/i&gt; para lê-lo de &lt;i&gt;&lt;b&gt;javascript&lt;/b&gt;&lt;/i&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;JSON&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Eu gosto de dizer &lt;b&gt;&lt;i&gt;&quot;jota son&quot;&lt;/i&gt;&lt;/b&gt;, mas as pessoas costumam dizer &lt;i&gt;&lt;b&gt;&quot;yei son&quot;&lt;/b&gt;&lt;/i&gt;. É um &lt;b&gt;formato de representação de dados&lt;/b&gt; que encapsula &lt;b&gt;objetos&lt;/b&gt;, &lt;b&gt;matrizes&lt;/b&gt; ou &lt;b&gt;variáveis&lt;/b&gt; ​​em uma notação especial.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.json.org/&quot;&gt;JSON&lt;/a&gt;&lt;/b&gt;&amp;nbsp;&lt;b&gt;JavaScript Object Notation&lt;/b&gt; é. E, basicamente, a forma em que os objetos são representados em&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://pt.wikipedia.org/wiki/JavaScript&quot;&gt;Javascript&lt;/a&gt;&lt;/b&gt;. No interior, pode ser de uma única variável, um array de objetos inteiros, etc&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;JSON vs XML&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-bottom: 0.5em; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG3my3m45xNxu3prriqLDEv8oSKLDOlRvBpjr0gn8FlfR7BRnobydanzeRpxvKXkjjWxzgQfyE0SDbPnmkkCQq67dDB3idLDqUr6H_aICKZxSS-G5VQqEc8a7lD1aj-RYAJj9VxI8GxvRw/s1600/xml-vs-json.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;240&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG3my3m45xNxu3prriqLDEv8oSKLDOlRvBpjr0gn8FlfR7BRnobydanzeRpxvKXkjjWxzgQfyE0SDbPnmkkCQq67dDB3idLDqUr6H_aICKZxSS-G5VQqEc8a7lD1aj-RYAJj9VxI8GxvRw/s320/xml-vs-json.jpg&quot; style=&quot;cursor: move;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 13px; padding-top: 4px; text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;XML vs JSON&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://pt.wikipedia.org/wiki/XML&quot;&gt;XML&lt;/a&gt;&lt;/b&gt;&amp;nbsp;é uma outra &lt;b&gt;forma de representação de dados&lt;/b&gt;, mas utiliza tags para formatá-lo como&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://pt.wikipedia.org/wiki/HTML&quot;&gt;HTML&lt;/a&gt;&lt;/b&gt;. A vantagem do JSON é, basicamente, dois:&lt;/div&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;É mais leve que o XML, porque não adicionar rótulos para adicionar muitos bytes para o conteúdo.&lt;/li&gt;
&lt;li&gt;Você pode ler quase em JavaScript e que o torna mais rápido. No caso do XML é que o processo mais e que o torna mais lento.&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;AJAX&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Nos últimos anos, o&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://pt.wikipedia.org/wiki/AJAX_(programa%C3%A7%C3%A3o)&quot;&gt;Ajax&lt;/a&gt;&lt;/b&gt;&amp;nbsp;se tornou moda. Como você se comunica com o servidor em primeiro foi o &lt;b&gt;XML&lt;/b&gt;. Mas o &lt;b&gt;JSON estourou a ser aplicada&lt;/b&gt; para os benefícios que mencionei anteriormente. Então, muitas comunicações são feitas em &lt;b&gt;ajax json&lt;/b&gt;, serviços web agora usam somente este formato.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;O que eles me pediram&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;O que eles me pediram para fazer, basicamente, é um tipo de &lt;b&gt;&lt;a href=&quot;http://pt.wikipedia.org/wiki/Web_service&quot;&gt;serviço web&lt;/a&gt;&lt;/b&gt;.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;A partir de uma &lt;b&gt;página web&lt;/b&gt;, usando &lt;b&gt;ajax&lt;/b&gt;, são solicitados os dados para uma URL (onde hospeda o meu &lt;b&gt;script PHP&lt;/b&gt;). Estes dados são utilizados para construir uma tabela, que não é importante neste momento qual é o seu propósito.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;No servidor de um arquivo é incluído no meu &lt;b&gt;script php&lt;/b&gt; que contém uma variável com os dados. Essa variável é preenchida com os dados do banco de dados em um determinado período de tempo (que eu não estou preocupado comigo, porque já está feito.)&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Esta variável é um objeto que contém uma matriz associativa com os valores, tais como:&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-bottom: 0.5em; margin-left: 1em; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEbLmEdcwB2tbWGnJuUIjsx836QwfHrCZmc-c4l32bY1U8EtfAYzRw9PaEpoOcKzheRpZaaJPnN3NZJ9wZp0Hvl35TgUzkPBlFjNhfyd6VgTSqK35tOiTXAK7mC77Qy1iC52fYiW2qulXx/s1600/ajax-1972.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEbLmEdcwB2tbWGnJuUIjsx836QwfHrCZmc-c4l32bY1U8EtfAYzRw9PaEpoOcKzheRpZaaJPnN3NZJ9wZp0Hvl35TgUzkPBlFjNhfyd6VgTSqK35tOiTXAK7mC77Qy1iC52fYiW2qulXx/s320/ajax-1972.jpg&quot; style=&quot;cursor: move;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 13px; padding-top: 4px; text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Equipe do Ajax&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;$data&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;array&lt;/span&gt;(&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta;&quot;&gt;&#39;dato1&#39;&lt;/span&gt;&amp;nbsp;=&amp;amp;gt; 1,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta;&quot;&gt;&#39;dato2&#39;&lt;/span&gt;&amp;nbsp;=&amp;amp;gt; 2,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta;&quot;&gt;&#39;dato3&#39;&lt;/span&gt;&amp;nbsp;=&amp;amp;gt; 3,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta;&quot;&gt;&#39;dato4&#39;&lt;/span&gt;&amp;nbsp;=&amp;amp;gt; 4,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta;&quot;&gt;&#39;dato5&#39;&lt;/span&gt;&amp;nbsp;=&amp;amp;gt; 5,&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Depois de pesquisar na &lt;b&gt;web&lt;/b&gt; por um tempo, e que alguns dos meus colegas de trabalho me disse que eu tinha de incluir uma biblioteca para fazer isso, eu achei que ele traz uma &lt;b&gt;função do PHP&lt;/b&gt; para fazer este trabalho:&lt;/div&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;a href=&quot;http://www.php.net/manual/en/function.json-encode.php&quot;&gt;json_encode&lt;/a&gt;,&lt;/b&gt;&amp;nbsp;que retorna um string no formato JSON para a representação do que nós, como um parâmetro.&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;e é também a sua contrapartida:&lt;/div&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;a href=&quot;http://www.php.net/manual/en/function.json-decode.php&quot;&gt;json_decode&lt;/a&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp;para decodificar o json que passamos como parâmetro e retorna a variável matriz ou objeto que ele representa.&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: inherit; font-size: large;&quot;&gt;json_encode()&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Mas no meu caso eu só precisava &lt;b&gt;json_encode&lt;/b&gt;. Então eu tinha que fazer isso:&lt;/div&gt;&lt;/div&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-bottom: 0.5em; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyi3gsPiaMDwf6L7dsv_Poq4nLgBseE9alIikALBZVFU-XLBq-60SqiBa0ZAMt6P-KExFaHllkZ8CigPn16Wj7fXJ76UKKAhJ__R99cA3lI6KA0n0_SAH8ZnW_btwEx1_-QE7AaWgfi25y/s1600/php-logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;128&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyi3gsPiaMDwf6L7dsv_Poq4nLgBseE9alIikALBZVFU-XLBq-60SqiBa0ZAMt6P-KExFaHllkZ8CigPn16Wj7fXJ76UKKAhJ__R99cA3lI6KA0n0_SAH8ZnW_btwEx1_-QE7AaWgfi25y/s200/php-logo.jpg&quot; style=&quot;cursor: move;&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 13px; padding-top: 4px; text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;O elefante PHP&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;$json&lt;/span&gt;&amp;nbsp;= json_encode(&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;$data&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;e, em seguida, basta imprimir.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;echo&lt;/span&gt;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;$json&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;e imprime o seguinte:&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;{&quot;dato1&quot;:1,&quot;dato2&quot;:2,&quot;dato3&quot;:3,&quot;dato4&quot;:4,&quot;dato5&quot;:5}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Decodificação JSON&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Eu não precisava disso, mas se você me enviar o json para obter o equivalente em PHP:&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;$json&lt;/span&gt;&amp;nbsp;=&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: magenta;&quot;&gt;&#39;{&quot;dato1&quot;:1,&quot;dato2&quot;:2,&quot;dato3&quot;:3,&quot;dato4&quot;:4,&quot;dato5&quot;:5}&#39;&lt;/span&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: right; margin-bottom: 0.5em; padding-bottom: 6px; padding-left: 6px; padding-right: 6px; padding-top: 6px; text-align: right;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;clear: right; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/goog_670906676&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2xTfS84il39mc9Xkj86vSWNibLWhi-anSnl2mnRk_Za3Sn6iApL8wKJZuXxaSvIFNi6AksPVdNs4BBXnHX6UO-80c2KbRkCSC8LGjRJ9uqprCLW_6jr1fiXvnaGlWQHe-JQdpxt9DADlk/s200/php-manual.jpg&quot; style=&quot;cursor: move;&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;font-size: 13px; padding-top: 4px; text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;a href=&quot;http://www.php.net/manual/en/&quot;&gt;Manual do PHP&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;$data&lt;/span&gt;&amp;nbsp;= json_decode(&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;$json&lt;/span&gt;);&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;E pronto em $ dados, bem como as que tivemos antes. Tão fácil.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;De vez em quando você tem que ler o manual do PHP&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Este recurso está disponível a partir da &lt;b&gt;versão 5.2&lt;/b&gt;. Parece que uma vez utilizada uma biblioteca de objetos JSON, ou foi feito à mão, para os meus colegas que me aconselhou. Mas eu &lt;b&gt;procurei o &lt;a href=&quot;http://www.php.net/manual/pt_BR/index.php&quot;&gt;manual do PHP&lt;/a&gt;&lt;/b&gt; e encontrei estas funções.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Às vezes você tem que searchat o &lt;b&gt;manual do php&lt;/b&gt;. É uma &lt;b&gt;linguagem que está em constante evolução&lt;/b&gt; e pode ser que o que tivemos de fazer à mão, agora é fixa em uma &lt;i&gt;única função nativa&lt;/i&gt; &amp;nbsp;:)&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Esperemos que ajude alguém &amp;nbsp; :)&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;Diego Arregui&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://diegoarregui-br.blogspot.com/feeds/688226946028901881/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://diegoarregui-br.blogspot.com/2011/04/ler-e-escrever-json-com-php.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2144085516740366877/posts/default/688226946028901881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2144085516740366877/posts/default/688226946028901881'/><link rel='alternate' type='text/html' href='http://diegoarregui-br.blogspot.com/2011/04/ler-e-escrever-json-com-php.html' title='Ler e escrever JSON com PHP'/><author><name>Diego Arregui</name><uri>http://www.blogger.com/profile/17368417037239614359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0zsb7H9PZYkCLpu7xkCTvT0Cgh8q_UWAOJY7aTHT0D_grNyRv-y6IeNJwNU4E8bbNxO6DA3GTNxkqhl8ex5hUQ1MHU5r2nhtou1Si_LdEUC7SW_LyfTKm9PVkPmfUTg/s1600/diegoarregui_400x400.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhIQQ0JHguDEc8aIBjvDg1ymyIBW9pOjPmD9_94mJJoKwU0DiEPx2DgcdAplfehRSD8luGsUxgVMYUo1fI0qT1SL424A_UM957gTA1SCMtCHegUVQeg7qDOGjP8gcW7sof19xSMUxsHeI5e/s72-c/json160.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2144085516740366877.post-4703074996143346854</id><published>2011-04-27T09:35:00.046-03:00</published><updated>2011-04-27T09:35:00.526-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="futebol"/><category scheme="http://www.blogger.com/atom/ns#" term="parecer"/><category scheme="http://www.blogger.com/atom/ns#" term="publicidade"/><title type='text'>O Brujita Verón e consumo de iogurte</title><content type='html'>&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;No outro dia eu estava assistindo TV e vi um anúncio onde a &lt;b&gt;Brujita Verón&lt;/b&gt;, o ídolo dos torcedores do &lt;b&gt;&lt;a href=&quot;http://www.clubestudianteslp.com.ar/&quot;&gt;Estudiantes de la Plata&lt;/a&gt;&lt;/b&gt;, estava defendendo o consumo de &lt;b&gt;&lt;a href=&quot;http://pt.wikipedia.org/wiki/Iogurte&quot;&gt;iogurte&lt;/a&gt;&lt;/b&gt;.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Is not the first time I see it, nor does the first advertisement for this product. Of course not just any yogurt, but the brand is paid to do,&amp;nbsp;&lt;b&gt;Yogurísimo&lt;/b&gt;, the famed dairy company&amp;nbsp;&lt;b&gt;&lt;a href=&quot;http://www.laserenisima.com.ar/&quot;&gt;La Serenisima&lt;/a&gt;&lt;/b&gt;. We are saying that if we use this yogurt,&amp;nbsp;&lt;b&gt;will be stronger and get tired less&lt;/b&gt;.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Com mensagens como esta, muitos têm consumido iogurte diariamente. Minha mãe é uma delas. Mas agora com o &lt;b&gt;Brujita&lt;/b&gt;, mas por muitos anos.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;510&quot; src=&quot;http://www.youtube.com/embed/AxTAhmy4CrQ&quot; title=&quot;YouTube video player&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Com slogans como &lt;b&gt;&lt;i&gt;&quot;Um iogurte todos os dias&quot;&lt;/i&gt;&lt;/b&gt; e &lt;i&gt;&lt;b&gt;&quot;Alimente o seu desejo de vida&quot;&lt;/b&gt;&lt;/i&gt; têm ganhado muitos adeptos e viciados em um produto que, afinal, é suposto ser saudável. &lt;b&gt;Eu prefiro me viciado em iogurte de cigarro&lt;/b&gt; depois de tudo. Eu me levar meu iogurte todos os dias. Não se alimentam minha vontade de viver, mas eu gosto.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0DSsmLlJA8MU2b8tMHIuqxUpxJMS86JTkoAJLiWCfW0VArAU6HJ5F7vnnL6v7CW-CGlYTFS6EwwuFTSpVkmcLYdvXCQP6QzLMNlqdiKRhZBpPRr8_9nCz0lXInzDUpDoJ27g0joiNuum8/s1600/Yogurisimo%252BVeron.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0DSsmLlJA8MU2b8tMHIuqxUpxJMS86JTkoAJLiWCfW0VArAU6HJ5F7vnnL6v7CW-CGlYTFS6EwwuFTSpVkmcLYdvXCQP6QzLMNlqdiKRhZBpPRr8_9nCz0lXInzDUpDoJ27g0joiNuum8/s320/Yogurisimo%252BVeron.jpg&quot; style=&quot;cursor: move;&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: arial, sans-serif; font-size: 24px;&quot;&gt;&lt;span class=&quot;hps&quot; title=&quot;Haz clic para obtener otras posibles traducciones&quot;&gt;Personagem indicado&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Mas não era isso que me motivou a escrever, mas a minha pergunta sobre a eleição do &lt;b&gt;Brujita&lt;/b&gt; promover iogurte. O que realmente importa? Porque é uma porca de saúde? Porque jogar bola? Porque é famoso? Porque é o Estudiantes de la Plata jogador? Porque é que a cabeça nua?&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Pode ter acreditado que &lt;b&gt;Veron&lt;/b&gt; aumentaria a vendas de seus iogurte. Mas além de suas habilidades como jogador, eu nunca gostei deste &lt;b&gt;Brujita&lt;/b&gt;. Parece &lt;b&gt;um personagem desagradável&lt;/b&gt;. Então eu não entendo como ele foi escolhido para esta série de anúncios. Porque não há um só, mas já várias em que ele aparece. Eu nunca compre um produto alimentar promovida pela Brujita Veron. Talvez um par de botas de futebol, mas não iogurte. Eu sinto falta de Pancho Ibanez! Voltar Pancho, não te perdôo! &amp;nbsp; :)&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;E preste atenção Eu não acredito &lt;b&gt;que Brujita intencionalmente mau jogo contra a Inglaterra na Copa de 2002&lt;/b&gt; e tudo o que foi dito. Nem mesmo a pôr em causa as suas capacidades como jogador de futebol. Eu não gosto, é só isso. E eu acho que é porque eu acho que ninguém deve se encaixar. O mais provável é que eu estou errado, mas eu não posso ajudar. Se eu tivesse minha &lt;b&gt;fábrica de iogurte&lt;/b&gt;, Brujita ser a última pessoa que eu acho que a promovê-lo. É o que eles chamam de &lt;i&gt;&quot;uma questão de pele&quot;&lt;/i&gt;.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Com Yogurisimo há Brujita por um tempo&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;É o que diz no final de uma propaganda que ele fez para este iogurte, juntamente com seu pai e seu filho. Esse filho foi quem &lt;a href=&quot;http://24con.elargentino.com/conurbano/nota/34501-El-hijo-de-Ver%C3%B3n-atropell%C3%B3-a-una-joven-en-Caril%C3%B3/&quot;&gt;atropelou uma menina com ATV em Cariló&lt;/a&gt; no ano passado. Que diabos foi o criança com um ATV!&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Mas voltando à publicidade, o que significa isso? que se tomarmos este iogurte será eterna? seu filho vai ser jogador do Estudiantes de la Plata, enquanto ele e seu pai?&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;510&quot; src=&quot;http://www.youtube.com/embed/KxkMVxZ80Mk&quot; title=&quot;YouTube video player&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Seja qual for a interpretação, eu ainda deixa a questão de saber se foi boa escolha para este jogador para promover o iogurte. Apenas os gestores de La Serenísima sabe a resposta. E após todo este tempo ainda a contratação do Brujita, eles parecem fazer muito bem.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Termino aqui, porque eu vou para a loja para comprar iogurte. Saudações!&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;Diego Arregui&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://diegoarregui-br.blogspot.com/feeds/4703074996143346854/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://diegoarregui-br.blogspot.com/2011/04/o-brujita-veron-e-consumo-de-iogurte.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2144085516740366877/posts/default/4703074996143346854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2144085516740366877/posts/default/4703074996143346854'/><link rel='alternate' type='text/html' href='http://diegoarregui-br.blogspot.com/2011/04/o-brujita-veron-e-consumo-de-iogurte.html' title='O Brujita Verón e consumo de iogurte'/><author><name>Diego Arregui</name><uri>http://www.blogger.com/profile/17368417037239614359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0zsb7H9PZYkCLpu7xkCTvT0Cgh8q_UWAOJY7aTHT0D_grNyRv-y6IeNJwNU4E8bbNxO6DA3GTNxkqhl8ex5hUQ1MHU5r2nhtou1Si_LdEUC7SW_LyfTKm9PVkPmfUTg/s1600/diegoarregui_400x400.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/AxTAhmy4CrQ/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2144085516740366877.post-6013449651165603288</id><published>2011-04-25T09:45:00.002-03:00</published><updated>2011-04-26T04:25:02.871-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="humor"/><category scheme="http://www.blogger.com/atom/ns#" term="vídeo de segunda-feira"/><category scheme="http://www.blogger.com/atom/ns#" term="vídeos"/><title type='text'>O vídeo de segunda-feira 4 - Ele fica nervoso</title><content type='html'>&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Quando você &lt;b&gt;está por perto com o teclado&lt;/b&gt;, usando todos os dedos para digitar, usar o mouse somente quando necessário, tudo é mais rápido.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Mas nem todos sabem como usar atalhos de teclado e usar apenas o dedo indicador para digitar. Para recortar e colar no Word, use os botões pequenos em vez de &lt;b&gt;Ctrl + C&lt;/b&gt; e &lt;b&gt;Ctrl + V&lt;/b&gt;, faça a barra de rolagem arrastando o lado da janela, em vez de usar o mouse ou as teclas de rolagem da roda de direção. Para eles, tudo está indo mais devagar.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Para o personagem do vídeo desta segunda-feira é algo parecido com isso. E o pé um ao lado dele quer que ele enforcado. É como quando um conhecimento, quer o outro para fazer coisas como fazer sozinho. É muito engraçado &amp;nbsp; :)&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;The Scrollwheel&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;clear: both; text-align: center;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;510&quot; src=&quot;http://www.youtube.com/embed/fa9DLxDtPtc&quot; title=&quot;YouTube video player&quot; width=&quot;640&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Até o próximo vídeo&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;b&gt;Diego Arregui&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://diegoarregui-br.blogspot.com/feeds/6013449651165603288/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://diegoarregui-br.blogspot.com/2011/04/o-video-de-segunda-feira-4-ele-fica.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2144085516740366877/posts/default/6013449651165603288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2144085516740366877/posts/default/6013449651165603288'/><link rel='alternate' type='text/html' href='http://diegoarregui-br.blogspot.com/2011/04/o-video-de-segunda-feira-4-ele-fica.html' title='O vídeo de segunda-feira 4 - Ele fica nervoso'/><author><name>Diego Arregui</name><uri>http://www.blogger.com/profile/17368417037239614359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0zsb7H9PZYkCLpu7xkCTvT0Cgh8q_UWAOJY7aTHT0D_grNyRv-y6IeNJwNU4E8bbNxO6DA3GTNxkqhl8ex5hUQ1MHU5r2nhtou1Si_LdEUC7SW_LyfTKm9PVkPmfUTg/s1600/diegoarregui_400x400.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/fa9DLxDtPtc/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2144085516740366877.post-3098091098379995798</id><published>2009-09-29T19:12:00.020-03:00</published><updated>2011-04-26T05:27:56.984-03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="código"/><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="programação"/><title type='text'>Executar código javascript automaticamente</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTFZnX16_aPnItUm-gUIju_2bGezETrN7jXgJASyCl6BIrVhpNjql4TNVmYeuIqIYYPUkLkDLShtcRmeH7wM6gYQA9mxvGKU5IZgxZQ9lxPVPP2bqj1fQoUYAFduim2XTcfJ3k6yF3ivkX/s1600-h/codigo-javascript.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTFZnX16_aPnItUm-gUIju_2bGezETrN7jXgJASyCl6BIrVhpNjql4TNVmYeuIqIYYPUkLkDLShtcRmeH7wM6gYQA9mxvGKU5IZgxZQ9lxPVPP2bqj1fQoUYAFduim2XTcfJ3k6yF3ivkX/s320/codigo-javascript.jpg&quot; style=&quot;cursor: move;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Como eu disse antes, só começou em programação e estou aprendendo muitas coisas novas o tempo todo. Recentemente aconteceu algo que eu acho que tem que compartilhar, se ele serve mais.&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Aqui no meu trabalho, há uma página html que é carregado e queria terminar o carregamento quando chamar uma função que está no servidor. Isto é feito com &lt;a href=&quot;http://pt.wikipedia.org/wiki/AJAX_(programa%C3%A7%C3%A3o)&quot;&gt;ajax&lt;/a&gt; eles me disseram. Ainda não percebi muito bem o que é o Ajax, mas eles disseram que tudo que eu tinha que fazer é executar uma função &lt;a href=&quot;http://pt.wikipedia.org/wiki/JavaScript&quot;&gt;javascript&lt;/a&gt;, logo que a página é carregada.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Então eu procurei no&amp;nbsp;grande amigo&amp;nbsp;Google e encontrei algo que pode servir para mais do que ninguém:&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Existe um método chamado &lt;b&gt;onload&lt;/b&gt; de html, html e chama quando eu terminar de carregar todo o código. Tudo que você tem a fazer é passar para este método, o nome da função que queremos correr e brincar. Parece mágica, mas não. Programação em &lt;a href=&quot;http://pt.wikipedia.org/wiki/HTML&quot;&gt;HTML&lt;/a&gt; é mais do que apenas a montagem de tabelas e colocar o título da página.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;O código ficaria assim:&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;strong&gt;&amp;lt;&amp;nbsp;&lt;/strong&gt;body onload=&quot;myFunction()&quot;&amp;nbsp;&lt;strong&gt;&amp;gt;&lt;/strong&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;body é o &lt;b&gt;body&lt;/b&gt; da tag de html, e &lt;b&gt;myFunction&lt;/b&gt; seria o nome da função que deseja executar. Para que isso funcione, é óbvio que deve ter a função myFunction antes. Ele gera um erro se não encontrá-lo.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Bem, ele trabalha para mim, espero que eles servem, pergunte-me qualquer pergunta.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://diegoarregui-br.blogspot.com/feeds/3098091098379995798/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://diegoarregui-br.blogspot.com/2009/09/executar-codigo-javascript.html#comment-form' title='2 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2144085516740366877/posts/default/3098091098379995798'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2144085516740366877/posts/default/3098091098379995798'/><link rel='alternate' type='text/html' href='http://diegoarregui-br.blogspot.com/2009/09/executar-codigo-javascript.html' title='Executar código javascript automaticamente'/><author><name>Diego Arregui</name><uri>http://www.blogger.com/profile/17368417037239614359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0zsb7H9PZYkCLpu7xkCTvT0Cgh8q_UWAOJY7aTHT0D_grNyRv-y6IeNJwNU4E8bbNxO6DA3GTNxkqhl8ex5hUQ1MHU5r2nhtou1Si_LdEUC7SW_LyfTKm9PVkPmfUTg/s1600/diegoarregui_400x400.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTFZnX16_aPnItUm-gUIju_2bGezETrN7jXgJASyCl6BIrVhpNjql4TNVmYeuIqIYYPUkLkDLShtcRmeH7wM6gYQA9mxvGKU5IZgxZQ9lxPVPP2bqj1fQoUYAFduim2XTcfJ3k6yF3ivkX/s72-c/codigo-javascript.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2144085516740366877.post-2875910368890543266</id><published>2009-09-29T16:24:00.000-03:00</published><updated>2011-04-19T23:43:41.070-03:00</updated><title type='text'>Meu primeiro post</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm_4AkyF9n0c4i3LM2x4NMxmlV4BRiLuPkJpZFXwanqJNGrTo1wr6FfvN9dwH4uWuai2EFmroIjHv8bVDeuNDYzi7b7ksULfzqDC5_fzEIk7sAase8hSWhV55aeTjmJyfCm-Ecv7h1Zzmk/s1600-h/escribiendo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm_4AkyF9n0c4i3LM2x4NMxmlV4BRiLuPkJpZFXwanqJNGrTo1wr6FfvN9dwH4uWuai2EFmroIjHv8bVDeuNDYzi7b7ksULfzqDC5_fzEIk7sAase8hSWhV55aeTjmJyfCm-Ecv7h1Zzmk/s400/escribiendo.jpg&quot; style=&quot;cursor: move;&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Olá, meu nome é Diego Arregui e este é meu primeiro post. Recentemente eu comecei no mundo da programação e vejo muitos dos meus colegas tem um blog, então eu decidi ter o meu também.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Eu não sei muito bem que eu vou dizer a vocês, mas eu começar a contar um pouco sobre mim:&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Eu sou programador&amp;nbsp;HTML e&amp;nbsp;PHP, eu trabalho em um consultor de programação, eu sou casado e tenho um filho.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Trabalhou durante vários anos no quiosque do meu pai, &lt;b&gt;Maxikiosco Arregui 24&lt;/b&gt;, eu recomendo. Foram muitos anos lá. Quando terminei o colegial, eu não queria continuar a estudar, por isso meu pai me colocou para trabalhar na quiosque. Eu tinha muitas opções no momento e precisava de pai para ajudá-lo, as coisas estavam complicadas, tivemos que salvar a loja, como o homem da propaganda de TV, diz.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Eu sempre gostei de programação, consegui o pc&#39;s em cyber café que tivemos na quiosque e então sempre que eu tenho alguns conhecimentos de informática. Então, no ano passado me inscrevi no &lt;a href=&quot;http://clubdeprogramadores.com/&quot;&gt;Clube de Programadores&lt;/a&gt; para fazer alguns cursos e entrar neste mundo fascinante da programação. Eu tinha terminado o curso de &lt;b&gt;HTML&lt;/b&gt; e &lt;b&gt;PHP&lt;/b&gt; para novatos e minha namorada ficou grávida. Então eu tive que deixar de cursos e voltar ao quiosque. Mas um pouco mais de um mês eu tenho o meu sonho e eu estou trabalhando em TI Solvers, consultor de programação, fazendo o que gosto.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Embora apenas começando, entre este e vire à noite em quiosque o meu pai, posso apoiar a minha esposa e meu filho, por isso estou feliz.&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Outra das minhas paixões é a música, mas eu te falarei em outro post.&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;Aos poucos eu vou estar contando minhas histórias, e as minhas preocupações com a programação. Eu enviamos saudações a todos e esperar por sua sua mensagem.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://diegoarregui-br.blogspot.com/feeds/2875910368890543266/comments/default' title='Postar comentários'/><link rel='replies' type='text/html' href='http://diegoarregui-br.blogspot.com/2009/09/meu-primeiro-post.html#comment-form' title='0 Comentários'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2144085516740366877/posts/default/2875910368890543266'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2144085516740366877/posts/default/2875910368890543266'/><link rel='alternate' type='text/html' href='http://diegoarregui-br.blogspot.com/2009/09/meu-primeiro-post.html' title='Meu primeiro post'/><author><name>Diego Arregui</name><uri>http://www.blogger.com/profile/17368417037239614359</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0zsb7H9PZYkCLpu7xkCTvT0Cgh8q_UWAOJY7aTHT0D_grNyRv-y6IeNJwNU4E8bbNxO6DA3GTNxkqhl8ex5hUQ1MHU5r2nhtou1Si_LdEUC7SW_LyfTKm9PVkPmfUTg/s1600/diegoarregui_400x400.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjm_4AkyF9n0c4i3LM2x4NMxmlV4BRiLuPkJpZFXwanqJNGrTo1wr6FfvN9dwH4uWuai2EFmroIjHv8bVDeuNDYzi7b7ksULfzqDC5_fzEIk7sAase8hSWhV55aeTjmJyfCm-Ecv7h1Zzmk/s72-c/escribiendo.jpg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>