{"id":952,"date":"2016-08-05T19:08:07","date_gmt":"2016-08-06T02:08:07","guid":{"rendered":"https:\/\/2016.la.wordcamp.org\/?post_type=wcb_session&#038;p=952"},"modified":"2016-08-09T17:51:39","modified_gmt":"2016-08-10T00:51:39","slug":"use-php-arrays-like-a-boss","status":"publish","type":"wcb_session","link":"https:\/\/la.wordcamp.org\/2016\/session\/use-php-arrays-like-a-boss\/","title":{"rendered":"Use PHP arrays like a boss"},"content":{"rendered":"<p>You&#8217;ve heard of the good ol&#8217; school PHP loops. You have your &#8220;for&#8221; loops, your &#8220;foreach&#8221; loops, your &#8220;while&#8221; loops, your &#8220;fruit&#8221; loops&#8230; Well maybe not that last one!<\/p>\n<p>As a WordPress developer, you use arrays and loops all the time. They&#8217;re an essential part of your developer toolbox. But do you know everything about them?<\/p>\n<p>PHP has a wealth of array functions. They&#8217;re used by PHP experts to make their life easier. They let you reduce the amount of PHP code you need. This helps prevent bugs and makes your code more maintainable.<\/p>\n<p>You&#8217;ll learn about functions like array_filter, array_map and array_reduce. All within the context of regular WordPress work. By the end of this talk, loops won&#8217;t look at you the same way ever again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You&#8217;ve heard of the good ol&#8217; school PHP loops. You have your &#8220;for&#8221; loops, your &#8220;foreach&#8221; loops, your &#8220;while&#8221; loops, your &#8220;fruit&#8221; loops&#8230; Well maybe not that last one! As a WordPress developer, you use arrays and loops all the &hellip; <a href=\"https:\/\/la.wordcamp.org\/2016\/session\/use-php-arrays-like-a-boss\/\">Continue reading <span class=\"assistive-text\">Use PHP arrays like a boss<\/span>  <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":11536871,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1473543000,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[820],"footnotes":""},"session_track":[926064],"session_category":[],"class_list":["post-952","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-the-lighthouse"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p78Wxo-fm","session_date_time":{"date":"September 10, 2016","time":"2:30 pm"},"session_speakers":[{"id":"820","slug":"carl-alexander","name":"Carl Alexander","link":"https:\/\/la.wordcamp.org\/2016\/speaker\/carl-alexander\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/la.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/952","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/la.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/la.wordcamp.org\/2016\/wp-json\/wp\/v2\/types\/wcb_session"}],"author":[{"embeddable":true,"href":"https:\/\/la.wordcamp.org\/2016\/wp-json\/wp\/v2\/users\/11536871"}],"version-history":[{"count":1,"href":"https:\/\/la.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/952\/revisions"}],"predecessor-version":[{"id":953,"href":"https:\/\/la.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/952\/revisions\/953"}],"speakers":[{"embeddable":true,"href":"https:\/\/la.wordcamp.org\/2016\/wp-json\/wp\/v2\/speakers\/820"}],"wp:attachment":[{"href":"https:\/\/la.wordcamp.org\/2016\/wp-json\/wp\/v2\/media?parent=952"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/la.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_track?post=952"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/la.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_category?post=952"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}