{"id":341,"date":"2020-12-12T16:51:38","date_gmt":"2020-12-12T11:21:38","guid":{"rendered":"https:\/\/selfimagination.in\/tips\/?p=341"},"modified":"2021-05-30T08:45:34","modified_gmt":"2021-05-30T03:15:34","slug":"echo-keyword-is-used-to-print-a-message-in-php","status":"publish","type":"post","link":"https:\/\/selfimagination.in\/tips\/echo-keyword-is-used-to-print-a-message-in-php\/","title":{"rendered":"Echo keyword is used to print a message in PHP"},"content":{"rendered":"\n<p class=\"wp-block-zozuk-wphindi\">Echo &#8211; PHP \u092e\u0947\u0902 \u0915\u094b\u0908 \u092d\u0940 String \u0915\u094b \u092a\u094d\u0930\u093f\u0902\u091f \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093f\u090f \u0907\u0938 \u0915\u0940\u0935\u0930\u094d\u0921 \u0915\u093e \u0909\u092a\u092f\u094b\u0917 \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948\u0902 \u0906\u0907\u092f\u0947 \u0939\u092e \u0938\u092e\u091d\u0924\u0947 \u0939\u0948\u0902 \u0915\u0940 \u0915\u0948\u0938\u0947 \u0914\u0930 \u0915\u094d\u092f\u093e \u0915\u094d\u092f\u093e \u0911\u092a\u094d\u0936\u0928 \u0939\u094b\u0924\u0947 \u0939\u0948\u0902 \u0964<\/p>\n\n\n\n<p class=\"wp-block-zozuk-wphindi\"><\/p>\n\n\n\n<pre title=\"1. Simple Echo\" class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\necho \"Enter your message here\";\n?&gt;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image-3.png?resize=368%2C56&#038;ssl=1\" alt=\"\" class=\"wp-image-359\" width=\"368\" height=\"56\" srcset=\"https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image-3.png?w=460&amp;ssl=1 460w, https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image-3.png?resize=300%2C46&amp;ssl=1 300w\" sizes=\"auto, (max-width: 368px) 100vw, 368px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p class=\"wp-block-zozuk-wphindi\">\u092f\u0939\u093e\u0901 \u092a\u0930 \u091c\u0948\u0938\u093e \u092d\u0940 \u0939\u092e &#8220;inverted&nbsp; commas&#8221;&nbsp; \u0915\u0947 \u092c\u093f\u091a \u092e\u0947\u0902 \u0932\u093f\u0916\u0947\u0902\u0917\u0947 \u0924\u094b As it is \u0907\u0938 \u092a\u094d\u0930\u093f\u0902\u091f \u0939\u094b \u091c\u093e\u092f\u0947\u0917\u0947 \u0964<\/p>\n\n\n\n<pre title=\"2. Escape Sequence\" class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\n\necho \"if we print single 'Quote' &amp;ltBR&gt;\";\necho 'if we print double \"Quote\" &amp;ltBR&gt;';\n\necho \"Right way to Write this \\\"Quote\\\"  mark \";\n\n?&gt;<\/code><\/pre>\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 data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"158\" src=\"https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image-2.png?resize=640%2C158&#038;ssl=1\" alt=\"\" class=\"wp-image-357\" srcset=\"https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image-2.png?w=677&amp;ssl=1 677w, https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image-2.png?resize=300%2C74&amp;ssl=1 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/figure>\n<\/div><\/div>\n\n\n\n<p class=\"wp-block-zozuk-wphindi\">\u091c\u092c \u092d\u0940 \u0939\u092e\u0947\u0902 \u0915\u094b\u0908 \u092d\u0940 Escape Character \u092a\u094d\u0930\u093f\u0902\u091f \u0915\u0930\u0928\u093e \u0939\u094b \u0924\u094b \u0906\u092a \u0909\u0938 Character \u0915\u0947 \u092a\u0939\u0932\u0947  &#8220;\\&#8221; \u092c\u0948\u0915\u0938\u094d\u0932\u0948\u0936 \u0932\u0917\u093e\u090f\u0902\u0917\u0947 \u0924\u093e\u0915\u093f \u0935\u0939 Character Same \u092a\u094d\u0930\u093f\u0902\u091f \u0939\u094b \u091c\u093e\u092f\u0947 <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<pre title=\"3. Variable Print\" class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\n\n$myvar = \"Your Name\";\n\necho \"What is $myvar ?\";\n\n?&gt;<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image-1.png?resize=302%2C60&#038;ssl=1\" alt=\"\" class=\"wp-image-356\" width=\"302\" height=\"60\" srcset=\"https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image-1.png?w=415&amp;ssl=1 415w, https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image-1.png?resize=300%2C59&amp;ssl=1 300w\" sizes=\"auto, (max-width: 302px) 100vw, 302px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-zozuk-wphindi\">\u092f\u0939\u093e\u0901 \u092a\u0930 $myvar \u0915\u0940  \u091c\u0917\u0939 \u092a\u0930 Your&nbsp; Name&nbsp; \u092a\u094d\u0930\u093f\u0902\u091f \u0939\u094b\u0917\u093e <\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<pre title=\"3. Tag Print\" class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">&lt;?php\n\necho \"Simple Text&lt;BR>\";\necho \"&lt;B>Bold Text&lt;\/B>\";\n\n?><\/code><\/pre>\n\n\n\n<p class=\"wp-block-zozuk-wphindi\">\u0910\u0938\u093e \u0915\u0930\u0928\u0947 \u0938\u0947 \u092c\u094b\u0932\u094d\u0921 \u091f\u0947\u0915\u094d\u0938\u094d\u091f \u092a\u094d\u0930\u093f\u0902\u091f \u0939\u094b \u091c\u093e\u092f\u0947\u0917\u093e, &lt;B> \u0914\u0930 &lt;BR>  \u092a\u094d\u0930\u093f\u0902\u091f \u0928\u0939\u0940\u0902 \u0939\u094b\u0917\u093e \u0909\u0938\u0915\u093e \u0930\u093f\u091c\u0932\u094d\u091f \u092a\u094d\u0930\u093f\u0902\u091f \u0939\u094b\u0917\u093e\u0964 <\/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<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image.png?resize=242%2C115&#038;ssl=1\" alt=\"\" class=\"wp-image-351\" width=\"242\" height=\"115\" srcset=\"https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image.png?w=305&amp;ssl=1 305w, https:\/\/i0.wp.com\/selfimagination.in\/tips\/wp-content\/uploads\/2020\/12\/image.png?resize=300%2C143&amp;ssl=1 300w\" sizes=\"auto, (max-width: 242px) 100vw, 242px\" \/><\/figure><\/div>\n<\/div><\/div>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Echo \u0938\u094d\u091f\u0947\u091f\u092e\u0947\u0902\u091f Print \u0938\u094d\u091f\u0947\u091f\u092e\u0947\u0902\u091f \u0915\u0947 Comparison \u092e\u0947\u0902 \u092b\u093c\u093e\u0938\u094d\u091f \u0939\u094b\u0924\u093e \u0939\u0948\u0902<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Echo \u0938\u094d\u091f\u0947\u091f\u092e\u0947\u0902\u091f Print \u0938\u094d\u091f\u0947\u091f\u092e\u0947\u0902\u091f \u0915\u0947 Comparison \u092e\u0947\u0902 \u092b\u093c\u093e\u0938\u094d\u091f \u0939\u094b\u0924\u093e \u0939\u0948\u0902<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-341","post","type-post","status-publish","format-standard","hentry","category-php"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/comments?post=341"}],"version-history":[{"count":23,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/341\/revisions"}],"predecessor-version":[{"id":1168,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/posts\/341\/revisions\/1168"}],"wp:attachment":[{"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/media?parent=341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/categories?post=341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/selfimagination.in\/tips\/wp-json\/wp\/v2\/tags?post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}