{"id":361,"date":"2010-08-23T02:11:05","date_gmt":"2010-08-23T06:11:05","guid":{"rendered":"http:\/\/www.searchenginegenie.com\/programming-blog\/?p=361"},"modified":"2012-12-11T02:32:31","modified_gmt":"2012-12-11T06:32:31","slug":"if-statement-in-php","status":"publish","type":"post","link":"https:\/\/www.searchenginegenie.com\/programming-blog\/if-statement-in-php\/","title":{"rendered":"IF Statement In PHP"},"content":{"rendered":"<p>[php]<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;head&gt;<br \/>\n &lt;title&gt;IF statements in PHP.&lt;\/title&gt;<br \/>\n &lt;\/head&gt;<br \/>\n &lt;body&gt;<\/p>\n<p>&lt;?php<\/p>\n<p>$name = &quot;Rose&quot;;<\/p>\n<p>if ( $name == &quot;Rose&quot; )<\/p>\n<p>echo &quot;Your name is Rose!&lt;br \/&gt;&quot;;<\/p>\n<p>else<\/p>\n<p>echo &quot;Welcome to my homepage!&quot;;<br \/>\n ?&gt;<br \/>\n &lt;\/body&gt;<br \/>\n &lt;\/html&gt;<\/p>\n<p>[\/php]<\/p>\n<p>Output:<\/p>\n<p>If the Given input is Rose,the output will be<\/p>\n<p>Your name is Rose!<\/p>\n<p>Else<\/p>\n<p>Welcome to my homepage!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[php] &lt;html&gt; &lt;head&gt; &lt;title&gt;IF statements in PHP.&lt;\/title&gt; &lt;\/head&gt; &lt;body&gt; &lt;?php $name = &quot;Rose&quot;; if ( $name == &quot;Rose&quot; ) echo &quot;Your name is Rose!&lt;br \/&gt;&quot;; else echo &quot;Welcome to my homepage!&quot;; ?&gt; &lt;\/body&gt; &lt;\/html&gt; [\/php] Output: If the Given input is Rose,the output will be Your name is Rose! Else Welcome to my homepage!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-361","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/comments?post=361"}],"version-history":[{"count":7,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/361\/revisions"}],"predecessor-version":[{"id":559,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/posts\/361\/revisions\/559"}],"wp:attachment":[{"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/media?parent=361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/categories?post=361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.searchenginegenie.com\/programming-blog\/wp-json\/wp\/v2\/tags?post=361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}