{"id":183,"date":"2014-06-04T01:03:13","date_gmt":"2014-06-04T09:03:13","guid":{"rendered":"http:\/\/www.tech.dimprash.com\/?p=183"},"modified":"2017-02-27T10:34:23","modified_gmt":"2017-02-27T18:34:23","slug":"difference-between-print-and-echo","status":"publish","type":"post","link":"http:\/\/www.tech.dimprash.com\/?p=183","title":{"rendered":"Difference between print and echo"},"content":{"rendered":"<p>echo &#8211; can output one or more strings<br \/>\nprint &#8211; can only output one string, and returns always 1<br \/>\nTip: echo is marginally faster compared to print as echo does not return any value.<\/p>\n<p>echo &#8220;This&#8221;, &#8221; string&#8221;, &#8221; was&#8221;, &#8221; made&#8221;, &#8221; with multiple parameters.&#8221;;<\/p>\n<p>usage of echo with short open tag<\/p>\n<pre>\r\nI have < ? =$foo ? > foo\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>echo &#8211; can output one or more strings print &#8211; can only output one string, and returns always 1 Tip: echo is marginally faster compared to print as echo does not return any value. echo &#8220;This&#8221;, &#8221; string&#8221;, &#8221; was&#8221;, &#8221; made&#8221;, &#8221; with multiple parameters.&#8221;; usage of echo with short open tag I have &hellip; <a href=\"http:\/\/www.tech.dimprash.com\/?p=183\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Difference between print and echo<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-php"],"_links":{"self":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=183"}],"version-history":[{"count":4,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":755,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions\/755"}],"wp:attachment":[{"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.tech.dimprash.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}