{"id":9558,"date":"2020-01-25T13:17:42","date_gmt":"2020-01-25T13:17:42","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=9558"},"modified":"2022-05-08T12:07:22","modified_gmt":"2022-05-08T12:07:22","slug":"important-syntax-in-php-for-beginners","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/important-syntax-in-php-for-beginners\/","title":{"rendered":"What is the use of PHP explain with syntax?"},"content":{"rendered":"\n<p><strong>What is PHP?<br><\/strong> <strong>PHP<\/strong>: Hypertext Preprocessor(Recursive Acronym)<br> Server Side Programming\/Scripting Language<br> Can be embedded directly within HTML (&lt;?php ?&gt;)<br> Files use a \u201c.php\u201d file extension.<\/p>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2020\/01\/syntax-1.png\" alt=\"\" class=\"wp-image-9563\"\/><\/figure>\n<\/div><\/div>\n\n\n\n<p><strong>If\u2026 statement:-<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/9e8c3d2ad3bcb2d6637519540171a75c.js\"><\/script>\n\n\n\n<p><strong>if\u2026 and nested if :-<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/cfdedd66457456c7ac28678d531f53a2.js\"><\/script>\n\n\n\n<p><strong>if&#8230;else Statement:-<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/044c7b9096aab1fbd466695fea30e9ab.js\"><\/script>\n\n\n\n<p><strong>if&#8230;elseif&#8230;else Statement:-<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/bfd74408517ea76e050e1fb1a7cf5242.js\"><\/script>\n\n\n\n<p><strong>While Loop:-<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/53c6fc04d0d34fb11c00a4d5f30fab94.js\"><\/script>\n\n\n\n<p><strong>Nested While loop:-<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/3abeacff716138820bff9f146a87a81c.js\"><\/script>\n\n\n\n<p><strong>Do While loop:-<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/db91164eafbc24fa49f68f008f8308ae.js\"><\/script>\n\n\n\n<p><strong>Nested Do While loop:-<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/897062298a8d7821c4795428ab2f93bb.js\"><\/script>\n\n\n\n<p><strong>For loop :-<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/4efba4ca374d69623fe0b0d52887e6e7.js\"><\/script>\n\n\n\n<p><strong>Nested for loop :-<\/strong><\/p>\n\n\n\n<script src=\"https:\/\/gist.github.com\/ajcotocus\/b2208c548415d1a0a38b3a1bac029f2a.js\"><\/script>\n\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_75993\"><iframe loading=\"lazy\"  id=\"_ytid_37000\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_75993\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>What is PHP? PHP: Hypertext Preprocessor(Recursive Acronym) Server Side Programming\/Scripting Language Can be embedded directly within HTML (&lt;?php ?&gt;) Files use a \u201c.php\u201d file extension. If\u2026 statement:- if\u2026 and nested&#8230; <\/p>\n","protected":false},"author":1,"featured_media":9573,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[5150],"tags":[1570,2454,177,5607],"class_list":["post-9558","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-beginners","tag-important","tag-php","tag-syntax"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=9558"}],"version-history":[{"count":8,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9558\/revisions"}],"predecessor-version":[{"id":24993,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/9558\/revisions\/24993"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/9573"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=9558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=9558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=9558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}