{"id":1456,"date":"2013-10-01T07:07:12","date_gmt":"2013-10-01T07:07:12","guid":{"rendered":"http:\/\/www.websitedesignwebsitedevelopment.com\/?p=1456"},"modified":"2014-03-19T09:13:37","modified_gmt":"2014-03-19T09:13:37","slug":"array-object-start-php-oop","status":"publish","type":"post","link":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/","title":{"rendered":"Array to Object &#8211; Start with PHP OOP"},"content":{"rendered":"<p><code>&lt;?php<br \/>\n$obj = (object) array('web' =&gt; 'wdwd', 'game' =&gt; 'HOAB HTML5');<br \/>\necho $obj-&gt;web; \/\/ prints 'wdwd'<br \/>\necho $obj-&gt;game; \/\/ prints 'HOAB HTML5'<br \/>\n?&gt;<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&lt;?php $obj = (object) array(&#8216;web&#8217; =&gt; &#8216;wdwd&#8217;, &#8216;game&#8217; =&gt; &#8216;HOAB HTML5&#8217;); echo $obj-&gt;web; \/\/ prints &#8216;wdwd&#8217; echo $obj-&gt;game; \/\/ prints &#8216;HOAB HTML5&#8217; ?&gt;<\/p>\n","protected":false},"author":1,"featured_media":304,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[50],"tags":[],"class_list":["post-1456","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oop"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Array to Object - Start with PHP OOP<\/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:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Array to Object - Start with PHP OOP\" \/>\n<meta property=\"og:description\" content=\"&lt;?php $obj = (object) array(&#039;web&#039; =&gt; &#039;wdwd&#039;, &#039;game&#039; =&gt; &#039;HOAB HTML5&#039;); echo $obj-&gt;web; \/\/ prints &#039;wdwd&#039; echo $obj-&gt;game; \/\/ prints &#039;HOAB HTML5&#039; ?&gt;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/\" \/>\n<meta property=\"og:site_name\" content=\"AndroidBubble Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/pages\/Website-Design-Website-Development\/172363336135453\" \/>\n<meta property=\"article:published_time\" content=\"2013-10-01T07:07:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-03-19T09:13:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2011\/09\/php_wdwd.png\" \/>\n\t<meta property=\"og:image:width\" content=\"200\" \/>\n\t<meta property=\"og:image:height\" content=\"105\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Fahad\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fahad\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/\"},\"author\":{\"name\":\"Fahad\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\"},\"headline\":\"Array to Object &#8211; Start with PHP OOP\",\"datePublished\":\"2013-10-01T07:07:12+00:00\",\"dateModified\":\"2014-03-19T09:13:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/\"},\"wordCount\":8,\"image\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2011\/09\/php_wdwd.png\",\"articleSection\":[\"OOP\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/\",\"url\":\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/\",\"name\":\"Array to Object - Start with PHP OOP\",\"isPartOf\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2011\/09\/php_wdwd.png\",\"datePublished\":\"2013-10-01T07:07:12+00:00\",\"dateModified\":\"2014-03-19T09:13:37+00:00\",\"author\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\"},\"breadcrumb\":{\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#primaryimage\",\"url\":\"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2011\/09\/php_wdwd.png\",\"contentUrl\":\"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2011\/09\/php_wdwd.png\",\"width\":\"200\",\"height\":\"105\",\"caption\":\"PHP: Hypertext Preprocessor\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/androidbubble.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Website Development\",\"item\":\"https:\/\/androidbubble.com\/blog\/category\/website-development\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"OOP\",\"item\":\"https:\/\/androidbubble.com\/blog\/category\/website-development\/oop\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Array to Object &#8211; Start with PHP OOP\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#website\",\"url\":\"https:\/\/androidbubble.com\/blog\/\",\"name\":\"AndroidBubble Blog\",\"description\":\"Articles &amp; Posts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/androidbubble.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7\",\"name\":\"Fahad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g\",\"caption\":\"Fahad\"},\"sameAs\":[\"http:\/\/www.androidbubbles.com\/\",\"https:\/\/x.com\/phpFlex\"],\"url\":\"https:\/\/androidbubble.com\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Array to Object - Start with PHP OOP","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:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/","og_locale":"en_US","og_type":"article","og_title":"Array to Object - Start with PHP OOP","og_description":"&lt;?php $obj = (object) array('web' =&gt; 'wdwd', 'game' =&gt; 'HOAB HTML5'); echo $obj-&gt;web; \/\/ prints 'wdwd' echo $obj-&gt;game; \/\/ prints 'HOAB HTML5' ?&gt;","og_url":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/","og_site_name":"AndroidBubble Blog","article_publisher":"https:\/\/www.facebook.com\/pages\/Website-Design-Website-Development\/172363336135453","article_published_time":"2013-10-01T07:07:12+00:00","article_modified_time":"2014-03-19T09:13:37+00:00","og_image":[{"width":200,"height":105,"url":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2011\/09\/php_wdwd.png","type":"image\/png"}],"author":"Fahad","twitter_misc":{"Written by":"Fahad"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#article","isPartOf":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/"},"author":{"name":"Fahad","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7"},"headline":"Array to Object &#8211; Start with PHP OOP","datePublished":"2013-10-01T07:07:12+00:00","dateModified":"2014-03-19T09:13:37+00:00","mainEntityOfPage":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/"},"wordCount":8,"image":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#primaryimage"},"thumbnailUrl":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2011\/09\/php_wdwd.png","articleSection":["OOP"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/","url":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/","name":"Array to Object - Start with PHP OOP","isPartOf":{"@id":"https:\/\/androidbubble.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#primaryimage"},"image":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#primaryimage"},"thumbnailUrl":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2011\/09\/php_wdwd.png","datePublished":"2013-10-01T07:07:12+00:00","dateModified":"2014-03-19T09:13:37+00:00","author":{"@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7"},"breadcrumb":{"@id":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#primaryimage","url":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2011\/09\/php_wdwd.png","contentUrl":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2011\/09\/php_wdwd.png","width":"200","height":"105","caption":"PHP: Hypertext Preprocessor"},{"@type":"BreadcrumbList","@id":"https:\/\/androidbubble.com\/blog\/website-development\/oop\/array-object-start-php-oop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/androidbubble.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Website Development","item":"https:\/\/androidbubble.com\/blog\/category\/website-development\/"},{"@type":"ListItem","position":3,"name":"OOP","item":"https:\/\/androidbubble.com\/blog\/category\/website-development\/oop\/"},{"@type":"ListItem","position":4,"name":"Array to Object &#8211; Start with PHP OOP"}]},{"@type":"WebSite","@id":"https:\/\/androidbubble.com\/blog\/#website","url":"https:\/\/androidbubble.com\/blog\/","name":"AndroidBubble Blog","description":"Articles &amp; Posts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/androidbubble.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/0a833b633f744c3a5e0de7c9a94e71f7","name":"Fahad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/androidbubble.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/afab5bcad71955d142a69df1758e6710aed4ab9cc2b5da28c54a7c3f39801b73?s=96&d=mm&r=g","caption":"Fahad"},"sameAs":["http:\/\/www.androidbubbles.com\/","https:\/\/x.com\/phpFlex"],"url":"https:\/\/androidbubble.com\/blog\/author\/admin\/"}]}},"views":449,"jetpack_featured_media_url":"https:\/\/androidbubble.com\/blog\/wp-content\/uploads\/2011\/09\/php_wdwd.png","_links":{"self":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/1456","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/comments?post=1456"}],"version-history":[{"count":2,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/1456\/revisions"}],"predecessor-version":[{"id":1458,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/posts\/1456\/revisions\/1458"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/media\/304"}],"wp:attachment":[{"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/media?parent=1456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/categories?post=1456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/androidbubble.com\/blog\/wp-json\/wp\/v2\/tags?post=1456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}