{"id":2995,"date":"2014-10-05T12:49:37","date_gmt":"2014-10-05T14:49:37","guid":{"rendered":"https:\/\/www.kadunew.com\/blog\/?p=2995"},"modified":"2014-10-05T12:49:37","modified_gmt":"2014-10-05T14:49:37","slug":"dicas-rapidas-de-php","status":"publish","type":"post","link":"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php","title":{"rendered":"Dicas r\u00e1pidas de PHP"},"content":{"rendered":"<p>Dicas importantes para quem programa em PHP. Descobrir coisas novas \u00e9 fundamental, e se for em apenas um minuto, melhor ainda! Esse \u00e9 o lema da p\u00e1gina <a href=\"https:\/\/www.facebook.com\/minutodoprogramador\/info\" title=\"Dicas de PHP em um minuto\">Minuto PHP<\/a> que comecei a acompanhar essa semana. S\u00e3o dicas r\u00e1pidas e muito \u00fateis de PHP que v\u00e3o deixar seu c\u00f3digo PHP mais limpo e com uma melhor performance. Recomendo seguir essa p\u00e1gina. Abaixo algumas dicas bem interessantes sobre PHP.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php.jpg\" alt=\"constantes-php\" width=\"960\" height=\"960\" class=\"aligncenter size-full wp-image-2996\" srcset=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php.jpg 960w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php-150x150.jpg 150w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php-300x300.jpg 300w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/p>\n<p><a href=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/dica-concatenar-string.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/dica-concatenar-string.jpg\" alt=\"dica-concatenar-string\" width=\"960\" height=\"960\" class=\"aligncenter size-full wp-image-2997\" srcset=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/dica-concatenar-string.jpg 960w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/dica-concatenar-string-150x150.jpg 150w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/dica-concatenar-string-300x300.jpg 300w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/diferencao-include-require.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/diferencao-include-require.jpg\" alt=\"diferencao-include-require\" width=\"960\" height=\"960\" class=\"aligncenter size-full wp-image-2998\" srcset=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/diferencao-include-require.jpg 960w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/diferencao-include-require-150x150.jpg 150w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/diferencao-include-require-300x300.jpg 300w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/nao-usar-interrogacao.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/nao-usar-interrogacao.jpg\" alt=\"nao-usar-interrogacao\" width=\"960\" height=\"960\" class=\"aligncenter size-full wp-image-2999\" srcset=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/nao-usar-interrogacao.jpg 960w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/nao-usar-interrogacao-150x150.jpg 150w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/nao-usar-interrogacao-300x300.jpg 300w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/operador-ternario.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/operador-ternario.jpg\" alt=\"operador-ternario\" width=\"960\" height=\"960\" class=\"aligncenter size-full wp-image-3000\" srcset=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/operador-ternario.jpg 960w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/operador-ternario-150x150.jpg 150w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/operador-ternario-300x300.jpg 300w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/performance-em-seus-codigos.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/performance-em-seus-codigos.jpg\" alt=\"performance-em-seus-codigos\" width=\"960\" height=\"960\" class=\"aligncenter size-full wp-image-3001\" srcset=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/performance-em-seus-codigos.jpg 960w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/performance-em-seus-codigos-150x150.jpg 150w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/performance-em-seus-codigos-300x300.jpg 300w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/php-dica-comparadores.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/php-dica-comparadores.jpg\" alt=\"php-dica-comparadores\" width=\"960\" height=\"960\" class=\"aligncenter size-full wp-image-3002\" srcset=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/php-dica-comparadores.jpg 960w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/php-dica-comparadores-150x150.jpg 150w, https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/php-dica-comparadores-300x300.jpg 300w\" sizes=\"(max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n<p>Siga-me no Twitter: <a href=\"http:\/\/twitter.com\/kadunew\" rel=\"nofollow\">@kadunew<\/a> ou assine nosso <a href=\"https:\/\/www.kadunew.com\/blog\/feed\">Feed<\/a> e fique por dentro de todas atualiza\u00e7\u00f5es aqui do blog.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dicas importantes para quem programa em PHP. Descobrir coisas novas \u00e9 fundamental, e se for em apenas um minuto, melhor ainda! Esse \u00e9 o lema da p\u00e1gina Minuto PHP que comecei a acompanhar essa semana. S\u00e3o dicas r\u00e1pidas e muito \u00fateis de PHP que v\u00e3o deixar seu c\u00f3digo PHP mais limpo e com uma melhor [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[],"class_list":["post-2995","post","type-post","status-publish","format-standard","hentry","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Dicas r\u00e1pidas de PHP<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dicas r\u00e1pidas de PHP\" \/>\n<meta property=\"og:description\" content=\"Dicas importantes para quem programa em PHP. Descobrir coisas novas \u00e9 fundamental, e se for em apenas um minuto, melhor ainda! Esse \u00e9 o lema da p\u00e1gina Minuto PHP que comecei a acompanhar essa semana. S\u00e3o dicas r\u00e1pidas e muito \u00fateis de PHP que v\u00e3o deixar seu c\u00f3digo PHP mais limpo e com uma melhor [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php\" \/>\n<meta property=\"og:site_name\" content=\"KADUNEW\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-05T14:49:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"960\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kadu Oliveira\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kadu Oliveira\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php\",\"url\":\"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php\",\"name\":\"Dicas r\u00e1pidas de PHP\",\"isPartOf\":{\"@id\":\"https:\/\/www.kadunew.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php.jpg\",\"datePublished\":\"2014-10-05T14:49:37+00:00\",\"dateModified\":\"2014-10-05T14:49:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/07b2297c4825efbd1e9f2a1018926b05\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php#primaryimage\",\"url\":\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php.jpg\",\"contentUrl\":\"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php.jpg\",\"width\":960,\"height\":960},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.kadunew.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP\",\"item\":\"https:\/\/www.kadunew.com\/blog\/category\/php\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Dicas r\u00e1pidas de PHP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/#website\",\"url\":\"https:\/\/www.kadunew.com\/blog\/\",\"name\":\"KADUNEW\",\"description\":\"Artigos sobre Front-End e Programa\u00e7\u00e3o web\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.kadunew.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/07b2297c4825efbd1e9f2a1018926b05\",\"name\":\"Kadu Oliveira\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/780660fded589936b30467c54c99d51a?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/780660fded589936b30467c54c99d51a?s=96&r=g\",\"caption\":\"Kadu Oliveira\"},\"sameAs\":[\"https:\/\/www.kadunew.com\/blog\"],\"url\":\"https:\/\/www.kadunew.com\/blog\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dicas r\u00e1pidas de PHP","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php","og_locale":"pt_BR","og_type":"article","og_title":"Dicas r\u00e1pidas de PHP","og_description":"Dicas importantes para quem programa em PHP. Descobrir coisas novas \u00e9 fundamental, e se for em apenas um minuto, melhor ainda! Esse \u00e9 o lema da p\u00e1gina Minuto PHP que comecei a acompanhar essa semana. S\u00e3o dicas r\u00e1pidas e muito \u00fateis de PHP que v\u00e3o deixar seu c\u00f3digo PHP mais limpo e com uma melhor [&hellip;]","og_url":"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php","og_site_name":"KADUNEW","article_published_time":"2014-10-05T14:49:37+00:00","og_image":[{"width":960,"height":960,"url":"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php.jpg","type":"image\/jpeg"}],"author":"Kadu Oliveira","twitter_misc":{"Escrito por":"Kadu Oliveira"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php","url":"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php","name":"Dicas r\u00e1pidas de PHP","isPartOf":{"@id":"https:\/\/www.kadunew.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php#primaryimage"},"image":{"@id":"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php#primaryimage"},"thumbnailUrl":"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php.jpg","datePublished":"2014-10-05T14:49:37+00:00","dateModified":"2014-10-05T14:49:37+00:00","author":{"@id":"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/07b2297c4825efbd1e9f2a1018926b05"},"breadcrumb":{"@id":"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php#primaryimage","url":"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php.jpg","contentUrl":"https:\/\/www.kadunew.com\/blog\/wp-content\/uploads\/2014\/10\/constantes-php.jpg","width":960,"height":960},{"@type":"BreadcrumbList","@id":"https:\/\/www.kadunew.com\/blog\/php\/dicas-rapidas-de-php#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.kadunew.com\/blog"},{"@type":"ListItem","position":2,"name":"PHP","item":"https:\/\/www.kadunew.com\/blog\/category\/php"},{"@type":"ListItem","position":3,"name":"Dicas r\u00e1pidas de PHP"}]},{"@type":"WebSite","@id":"https:\/\/www.kadunew.com\/blog\/#website","url":"https:\/\/www.kadunew.com\/blog\/","name":"KADUNEW","description":"Artigos sobre Front-End e Programa\u00e7\u00e3o web","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kadunew.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Person","@id":"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/07b2297c4825efbd1e9f2a1018926b05","name":"Kadu Oliveira","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.kadunew.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/780660fded589936b30467c54c99d51a?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/780660fded589936b30467c54c99d51a?s=96&r=g","caption":"Kadu Oliveira"},"sameAs":["https:\/\/www.kadunew.com\/blog"],"url":"https:\/\/www.kadunew.com\/blog\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/posts\/2995"}],"collection":[{"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/comments?post=2995"}],"version-history":[{"count":4,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/posts\/2995\/revisions"}],"predecessor-version":[{"id":3006,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/posts\/2995\/revisions\/3006"}],"wp:attachment":[{"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/media?parent=2995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/categories?post=2995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kadunew.com\/blog\/wp-json\/wp\/v2\/tags?post=2995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}