{"id":3,"date":"2009-01-10T19:06:01","date_gmt":"2009-01-10T19:06:01","guid":{"rendered":"http:\/\/localhost\/projects\/phpmind\/blog\/?p=3"},"modified":"2010-07-17T01:35:48","modified_gmt":"2010-07-17T01:35:48","slug":"what-is-diffrence-between-echo-and-print","status":"publish","type":"post","link":"https:\/\/www.phpmind.com\/blog\/2009\/01\/what-is-diffrence-between-echo-and-print\/","title":{"rendered":"What is diffrence between echo and print?"},"content":{"rendered":"<p>Print method can return a true\/false value. This may be helpful during a script execution of somesort. If you need to output data through a function, you can use print()<br \/>\ninstead<\/p>\n<p>Echo does not return a value, but has been considered as a faster executed command. echo is not a function and, as such, it does not have a return value.<br \/>\necho 30;<br \/>\nprint (30);<\/p>\n<ul id=\"newtagcloud\"><li><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Print method can return a true\/false value. This may be helpful during a script execution of somesort. If you need to output data through a function, you can use print() instead Echo does not return a value, but has been considered as a faster executed command. echo is not a function and, as such, it [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-3","post","type-post","status-publish","format-standard","hentry","category-interview-questions"],"_links":{"self":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/3","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/comments?post=3"}],"version-history":[{"count":26,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/3\/revisions"}],"predecessor-version":[{"id":875,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/posts\/3\/revisions\/875"}],"wp:attachment":[{"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/media?parent=3"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/categories?post=3"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.phpmind.com\/blog\/wp-json\/wp\/v2\/tags?post=3"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}