{"id":177,"date":"2012-01-31T20:18:40","date_gmt":"2012-01-31T20:18:40","guid":{"rendered":"https:\/\/ibex.tech\/cloud\/?p=177"},"modified":"2022-02-17T07:14:05","modified_gmt":"2022-02-17T07:14:05","slug":"print-vs-echo","status":"publish","type":"post","link":"https:\/\/ibex.tech\/cloud\/php\/echo\/print-vs-echo","title":{"rendered":"Print vs Echo"},"content":{"rendered":"<p>Print is a PHP function called with an argument.\u00a0 Echo is a PHP language construct.\u00a0 Echo is therefore faster, but when you need an actual function call you can use print.\u00a0 For example this only wotks using print:<\/p>\n<pre><code>\r\n  $MyVariable ? print \"True\" : print \"False\";\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Print is a PHP function called with an argument.\u00a0 Echo is a PHP language construct.\u00a0 Echo is therefore faster, but when you need an actual function call you can use print.\u00a0 For example this only wotks using print: $MyVariable ? print &#8220;True&#8221; : print &#8220;False&#8221;;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-echo"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":1478,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/posts\/177\/revisions\/1478"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/cloud\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}