{"id":3267,"date":"2012-05-08T06:47:55","date_gmt":"2012-05-08T06:47:55","guid":{"rendered":"http:\/\/phpcodez.com\/?p=3267"},"modified":"2012-05-08T06:47:55","modified_gmt":"2012-05-08T06:47:55","slug":"in_array","status":"publish","type":"post","link":"http:\/\/phpcodez.com\/in_array\/","title":{"rendered":"in_array"},"content":{"rendered":"<div>It checks if a value exists in an array<\/p>\n<p><strong>Example<\/strong><\/p>\n<p>&lt;?php<br \/>\n$lan = array(&#8220;PHP&#8221;, &#8220;ASP&#8221;, &#8220;JSP&#8221;);<br \/>\nif (in_array(&#8220;PHP&#8221;, $lan)) {<br \/>\necho &#8220;PHP exists&#8221;;<br \/>\n}<br \/>\n?&gt;<\/p>\n<p><strong>Output<\/strong><\/p>\n<p>PHP exists<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>It checks if a value exists in an array Example &lt;?php $lan = array(&#8220;PHP&#8221;, &#8220;ASP&#8221;, &#8220;JSP&#8221;); if (in_array(&#8220;PHP&#8221;, $lan)) { echo &#8220;PHP exists&#8221;; } ?&gt; Output PHP exists<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[54,213,370],"class_list":["post-3267","post","type-post","status-publish","format-standard","hentry","category-php","tag-array","tag-functions","tag-php"],"_links":{"self":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/3267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/comments?post=3267"}],"version-history":[{"count":0,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/posts\/3267\/revisions"}],"wp:attachment":[{"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/media?parent=3267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/categories?post=3267"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/phpcodez.com\/wp-json\/wp\/v2\/tags?post=3267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}