{"id":1351,"date":"2019-05-11T16:20:00","date_gmt":"2019-05-12T02:20:00","guid":{"rendered":"http:\/\/mymonkeydo.com\/?p=1337"},"modified":"2019-05-11T16:20:00","modified_gmt":"2019-05-12T02:20:00","slug":"shorthand-for-array","status":"publish","type":"post","link":"https:\/\/mymonkeydo.com\/shorthand-for-array\/","title":{"rendered":"Shorthand for array"},"content":{"rendered":"\n
Recently I jumped on a project that uses the shorthand to declare an array by using the brackets []. I wondered why I have been using “array()” this whole time besides it being common in WordPress. Only to realize after deploying a plugin to a very old and out of date site that “[]” is not valid syntax in PHP 5.3.<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[2],"tags":[54,55],"yoast_head":"\n