{"id":3140,"date":"2019-06-13T00:03:29","date_gmt":"2019-06-13T00:03:29","guid":{"rendered":"http:\/\/softlect.in\/?p=3140"},"modified":"2019-06-13T00:35:21","modified_gmt":"2019-06-13T00:35:21","slug":"php-output","status":"publish","type":"post","link":"http:\/\/softlect.com\/index.php\/php-output\/","title":{"rendered":"PHP Output"},"content":{"rendered":"<p>Output:<\/p>\n<p>print function is used to create unformatted output<\/p>\n<p>it can be called with or without parentheses<\/p>\n<p>For example:<\/p>\n<p>print \u201cThis is Sample\u201d;<\/p>\n<p>print(\u201cThis is Sample\u201d);<\/p>\n<p>print \u201cThe Result is: $sum\u201d;<\/p>\n<p>print (\u201cThe Result is: $sum\u201d);<\/p>\n<p>&nbsp;<\/p>\n<p>printf function is used to create formatted output. For example<\/p>\n<p>printf(\u201cstring\u201d, para1, para2\u2026 paran)<\/p>\n<p>&nbsp;<\/p>\n<p>The string can contain text to be displayed and format codes. The format code contains percentage sign (%) with field width and type specifier.<\/p>\n<p>%s \u00a0\u00a0\u00a0 Strings<\/p>\n<p>%d\u00a0\u00a0\u00a0\u00a0 integers<\/p>\n<p>%f\u00a0\u00a0\u00a0\u00a0\u00a0 double or float<\/p>\n<p>&nbsp;<\/p>\n<p>The field with is either integer or two integers separated by a decimal for double and float.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Output: print function is used to create unformatted output it can be called with or without parentheses For example: print \u201cThis is Sample\u201d; print(\u201cThis is Sample\u201d); print \u201cThe Result is:&hellip; <\/p>\n","protected":false},"author":1,"featured_media":3174,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[82],"tags":[],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts\/3140"}],"collection":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/comments?post=3140"}],"version-history":[{"count":2,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts\/3140\/revisions"}],"predecessor-version":[{"id":3162,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts\/3140\/revisions\/3162"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/media\/3174"}],"wp:attachment":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/media?parent=3140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/categories?post=3140"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/tags?post=3140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}