{"id":1657,"date":"2009-08-15T17:45:21","date_gmt":"2009-08-15T15:45:21","guid":{"rendered":"http:\/\/localhost\/helpcentre\/?p=1657"},"modified":"2023-09-06T11:00:44","modified_gmt":"2023-09-06T09:00:44","slug":"what-is-php","status":"publish","type":"post","link":"https:\/\/xneelo.co.za\/help-centre\/website\/what-is-php\/","title":{"rendered":"What is PHP?"},"content":{"rendered":"<p><b>PHP <\/b>is a powerful, server-side scripting language that can be used to extend the functionality of your pages in many ways. It is available for all web hosting packages, and is invoked by naming the files that use it with the following extension:<\/p>\n<p>.php<\/p>\n<p>The syntax of PHP is very similar to popular programming languages such as C and Perl. If you have any previous programming experience, it is likely that you\u2019ll be able to pick up PHP in short order. No one tutorial could ever cover the hundreds of built-in PHP functions, so we highly recommend following and reading over the related links given at the bottom of this article.<\/p>\n<p>PHP is embedded in a page by enclosing commands within the start tag:<\/p>\n<div class=\"codeblock\"><code><span style=\"color: #000000;\"><br \/>\n<span style=\"color: #0000bb;\">&lt;?<br \/>\n<\/span><span style=\"color: #007700;\">echo <\/span><span style=\"color: #dd0000;\">\"This text written by PHP!\"<\/span><span style=\"color: #007700;\">;<br \/>\n<\/span><span style=\"color: #0000bb;\">?&gt; <\/span><br \/>\n<\/span><br \/>\n<\/code><\/div>\n<p>Normal HTML tags and text cannot be included within blocks of PHP code. You can output HTML code from within a PHP block to the browser by using the echo command as shown above, or by ending the PHP block, outputting your HTML, and starting a new one. You can include as many separated blocks of PHP code in your file as you need, and any variables you set will be available to the block it was set in, and any block below that.<\/p>\n<p>Further reading:<\/p>\n<p><a title=\"http:\/\/www.php.net\/tut.php\" href=\"http:\/\/www.php.net\/tut.php\" target=\"new\" rel=\"noopener noreferrer\">http:\/\/www.php.net\/tut.php<\/a><br \/>\n<a title=\"http:\/\/www.w3schools.com\/php\/default.asp\" href=\"http:\/\/www.w3schools.com\/php\/default.asp\" target=\"new\" rel=\"noopener noreferrer\">http:\/\/www.w3schools.com\/php\/default.asp<\/a><\/p>\n","protected":false,"plain":"<b>PHP <\/b>is a powerful, server-side scripting language that can be used to extend the functionality of your pages in many ways. It is available for all web hosting packages, and is invoked by naming the files that use it with the following extension:\r\n\r\n.php\r\n\r\nThe syntax of PHP is very similar to popular programming languages such as C and Perl. If you have any previous programming experience, it is likely that you\u2019ll be able to pick up PHP in short order. No one tutorial could ever cover the hundreds of built-in PHP functions, so we highly recommend following and reading over the related links given at the bottom of this article.\r\n\r\nPHP is embedded in a page by enclosing commands within the start tag:\r\n<div class=\"codeblock\"><code><span >\r\n<span >&lt;?\r\n<\/span><span >echo <\/span><span >\"This text written by PHP!\"<\/span><span >;\r\n<\/span><span >?&gt; <\/span>\r\n<\/span>\r\n<\/code><\/div>\r\nNormal HTML tags and text cannot be included within blocks of PHP code. You can output HTML code from within a PHP block to the browser by using the echo command as shown above, or by ending the PHP block, outputting your HTML, and starting a new one. You can include as many separated blocks of PHP code in your file as you need, and any variables you set will be available to the block it was set in, and any block below that.\r\n\r\nFurther reading:\r\n\r\n<a title=\"http:\/\/www.php.net\/tut.php\" href=\"http:\/\/www.php.net\/tut.php\" target=\"new\" rel=\"noopener noreferrer\">http:\/\/www.php.net\/tut.php<\/a>\r\n<a title=\"http:\/\/www.w3schools.com\/php\/default.asp\" href=\"http:\/\/www.w3schools.com\/php\/default.asp\" target=\"new\" rel=\"noopener noreferrer\">http:\/\/www.w3schools.com\/php\/default.asp<\/a>"},"excerpt":{"rendered":"<p>PHP is a powerful, server-side scripting language that can be used to extend the functionality of your pages. It is available for all web hosting packages.<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"lsx_disable_title":"0","_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","footnotes":""},"categories":[171,179,166],"tags":[20711,17168],"topics":[19481],"class_list":["post-1657","post","type-post","status-publish","format-standard","hentry","category-faq-website","category-php","category-website","tag-what-is-php","tag-php","topics-php-upgrade"],"acf":[],"additional_meta":{"category_title":[{"term_id":171,"name":"FAQ about websites","slug":"faq-website","term_group":0,"term_taxonomy_id":171,"taxonomy":"category","description":"Frequently asked questions and answers about Websites","parent":166,"count":8,"filter":"raw","term_order":"69","cat_ID":171,"category_count":8,"category_description":"Frequently asked questions and answers about Websites","cat_name":"FAQ about websites","category_nicename":"faq-website","category_parent":166},{"term_id":179,"name":"PHP","slug":"php","term_group":0,"term_taxonomy_id":179,"taxonomy":"category","description":"Allowing you to create dynamic content that interacts with databases","parent":168,"count":20,"filter":"raw","term_order":"97","cat_ID":179,"category_count":20,"category_description":"Allowing you to create dynamic content that interacts with databases","cat_name":"PHP","category_nicename":"php","category_parent":168},{"term_id":166,"name":"Website","slug":"website","term_group":0,"term_taxonomy_id":166,"taxonomy":"category","description":"About your Website(s)","parent":0,"count":169,"filter":"raw","term_order":"120","cat_ID":166,"category_count":169,"category_description":"About your Website(s)","cat_name":"Website","category_nicename":"website","category_parent":0}],"tag_title":[{"term_id":20711,"name":"What is PHP?","slug":"what-is-php","term_group":0,"term_taxonomy_id":20711,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw","term_order":"1228"},{"term_id":17168,"name":"php","slug":"php","term_group":0,"term_taxonomy_id":17168,"taxonomy":"post_tag","description":"","parent":0,"count":16,"filter":"raw","term_order":"2390"}]},"featured_image_src":null,"author_info":{"display_name":"marketing","author_link":"https:\/\/xneelo.co.za\/help-centre\/author\/marketing\/","author_avatar":"https:\/\/secure.gravatar.com\/avatar\/a6ea315e112423b2b955cb020fbce2b0835956c6ad85ff0f13f1db298977eaaa?s=96&d=mm&r=g"},"_links":{"self":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/posts\/1657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/comments?post=1657"}],"version-history":[{"count":0,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/posts\/1657\/revisions"}],"wp:attachment":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/media?parent=1657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/categories?post=1657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/tags?post=1657"},{"taxonomy":"topics","embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/topics?post=1657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}