{"id":18085,"date":"2013-02-15T20:30:07","date_gmt":"2013-02-16T00:30:07","guid":{"rendered":"http:\/\/www.andysowards.com\/blog\/?p=18085"},"modified":"2013-02-15T20:30:07","modified_gmt":"2013-02-16T00:30:07","slug":"php-is-better-than-you-thought-it-would-be","status":"publish","type":"post","link":"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/","title":{"rendered":"PHP is better Than You Thought It Would Be"},"content":{"rendered":"<p>PHP is one of the most used programming languages of the world. It comes in different frameworks which take care of all the web development needs. However with popularity it has also attracted many detractors who point out at the loopholes in this programming language. Some of these arguments are genuine while others make uninformed comments on PHP. Of course PHP has its limitations but there isn\u2019t any programming language in the world which doesn\u2019t have limitations. Here let us try and study some of these arguments against PHP and why they aren\u2019t as good as they sound. Also we shall analyze the benefits you can draw out of PHP.<\/p>\n<h2>The Criticism<\/h2>\n<h3>It Isn\u2019t Ruby on Rails<\/h3>\n<p><a href=\"http:\/\/net.tutsplus.com\/articles\/general\/language-war-php-vs-ruby-2\/\" target=\"_blank\"><img decoding=\"async\" data-src=\"https:\/\/www.andysowards.com\/blog\/assets\/language-war-php-vs-ruby.jpg\" alt=\"\" title=\"language-war-php-vs-ruby\" width=\"625\" height=\"349\" class=\"alignnone size-full wp-image-18089 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 625px; --smush-placeholder-aspect-ratio: 625\/349;\" \/><\/a><br \/>\n<em>Language War: PHP vs. Ruby<\/em><\/p>\n<p>This is the most common arguments that go around in the developer\u2019s community. Yes PHP isn\u2019t Ruby on Rails and makes no claims of being so. And it is absurd to compare the Rails framework with a collection of frameworks that PHP is.  There are thousands of frameworks in PHP which offer different functionalities and you need to choose the framework which suits your needs. Some developers simply make a bad choice and later criticize PHP for not fulfilling their needs.<\/p>\n<h3>The Object Model Isn\u2019t Good<\/h3>\n<p><a href=\"http:\/\/net.tutsplus.com\/tutorials\/php\/object-oriented-php-for-beginners\/\" target=\"_blank\"><img decoding=\"async\" data-src=\"https:\/\/www.andysowards.com\/blog\/assets\/object-oriented-php-for-beginners.jpg\" alt=\"\" title=\"Object-Oriented PHP for Beginners\" width=\"281\" height=\"193\" class=\"alignnone size-full wp-image-18091 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 281px; --smush-placeholder-aspect-ratio: 281\/193;\" \/><\/a><br \/>\n<em>Object-Oriented PHP for Beginners<\/em><\/p>\n<p>Which age do these critics live in? There were of course some problems with PHP4 when it came to object modeling but PHP5 which released in 2004 has rectified this problem. Most of these critics tend to make judgments based on historical facts and completely overlook the present day facts regarding the programming language. PHP5 supports all the object models and come complete with access modifiers, multiple interfaces which make it easy for programmers to work with objects.<\/p>\n<h3>Lack of Best Practice<\/h3>\n<p><a href=\"http:\/\/www.codinghorror.com\/blog\/2012\/06\/the-php-singularity.html\" target=\"_blank\"><img decoding=\"async\" data-src=\"https:\/\/www.andysowards.com\/blog\/assets\/critique-criticism-php-singularity.png\" alt=\"\" title=\"The PHP Singularity\" width=\"300\" height=\"401\" class=\"alignnone size-full wp-image-18090 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 300px; --smush-placeholder-aspect-ratio: 300\/401;\" \/><\/a><br \/>\n<em>The PHP Singularity<\/em><\/p>\n<p>This surely deserves to be one of the funniest of all arguments that is put against PHP. How can a programming language achieve so much popularity that PHP has without having so called \u2018best practices\u2019? The developers have put in a lot of efforts to bring in tools which help get rid of common errors in coding which those amateur developers commit. Tools such as e xUnit tool, PHPUnit aid the developers and enhance the quality of the end product.<\/p>\n<h2>The Benefits<\/h2>\n<h3>Free and Free of Restrictions<\/h3>\n<p><a href=\"http:\/\/www.pcworld.com\/article\/209891\/10_reasons_open_source_is_good_for_business.html\" target=\"_blank\"><img decoding=\"async\" data-src=\"https:\/\/www.andysowards.com\/blog\/assets\/10_reasons_open_source_is_good_for_business.png\" alt=\"\" title=\"10 Reasons Open Source Is Good for Business - Linux Software\" width=\"426\" height=\"564\" class=\"alignnone size-full wp-image-18092 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 426px; --smush-placeholder-aspect-ratio: 426\/564;\" \/><\/a><br \/>\n<em>10 Reasons Open Source Is Good for Business<\/em><\/p>\n<p>PHP is an open source solution which has helped gain immense popularity among users worldwide. This has led to a scenario where close to 40% of all the websites in the world are powered by PHP.  Being a server side scripting language it can be used to create dynamic webpages easily.  Another major benefit that you can draw out of it is the fact that it comes with absolutely no restrictions. One can easily modify the source code to get the functionality that he or she requires.<\/p>\n<h3>Database Support<\/h3>\n<p><a href=\"http:\/\/net.tutsplus.com\/tutorials\/php\/php-database-access-are-you-doing-it-correctly\/\" target=\"_blank\"><img decoding=\"async\" data-src=\"https:\/\/www.andysowards.com\/blog\/assets\/php-database-access-are-you-doing-it-correctly.jpg\" alt=\"\" title=\"php-database-access-are-you-doing-it-correctly\" width=\"250\" height=\"256\" class=\"alignnone size-full wp-image-18093 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 250px; --smush-placeholder-aspect-ratio: 250\/256;\" \/><\/a><br \/>\n<em>PHP Database Access: Are You Doing It Correctly?<\/em><\/p>\n<p>Many programming languages claim to be better than PHP when it comes to handling your project but how many databases do the support? Often they would restrict you to a few whether you like it or not. This is another area where PHP scores decent points as it works with a range of  MySQL database flawlessly and apart from MySQL it also can easily work with MSSQL, Oracle OC18, IBM DB2, etc. This way if you migrate from other programs to PHP it doesn\u2019t involve extra cost and effort.<\/p>\n<h3>Mature In Implementation<\/h3>\n<p><a href=\"http:\/\/www.webdesignermag.co.uk\/features\/laravel-a-modern-php-framework\/\" target=\"_blank\"><img decoding=\"async\" data-src=\"https:\/\/www.andysowards.com\/blog\/assets\/laravel-a-modern-php-framework.jpg\" alt=\"\" title=\"laravel-a-modern-php-framework\" width=\"600\" height=\"255\" class=\"alignnone size-full wp-image-18095 lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 600px; --smush-placeholder-aspect-ratio: 600\/255;\" \/><\/a><br \/>\n<em>Laravel: A modern PHP framework<\/em><\/p>\n<p>There are many crazy frameworks which hit the market and promise the moon. Now these might seem very attractive on the cover using these frameworks can give you headache in the long run. PHP on the other hand has stood the test of time and has been developed over the years by a community of developers from all around the world. This has made it into a stable and mature programming language which will cater to almost all your needs with respect to web development.<\/p>\n<p>To sum up, PHP is a robust programming language that has been designed to empower the web developers and it serves most of the niche web development needs. The PHP developers\u2019 community offers you all the suggestions and tips that you would require executing a well designed and developed website. PHP is an open platform is many ways and thus there are no strict restrictions on the developers and this is the essence around which the entire programming language has been built.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP is one of the most used programming languages of the world. It comes in different frameworks which take care of all the web development needs. However with popularity it<\/p>\n","protected":false},"author":122,"featured_media":18091,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[4207,2339,4206,199,49,1,107],"tags":[176,178,5895,2360,174,186,5888,5890,848,2148,2149],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP is better Than You Thought It Would Be<\/title>\n<meta name=\"description\" content=\"PHP is one of the most used programming languages of the world. It comes in different frameworks which take care of all the web development needs. However\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP is better Than You Thought It Would Be\" \/>\n<meta property=\"og:description\" content=\"PHP is one of the most used programming languages of the world. It comes in different frameworks which take care of all the web development needs. However\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/\" \/>\n<meta property=\"og:site_name\" content=\"Daily Business Resources for Entrepreneurs, Web Designers, &amp; Creatives by Andy Sowards\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/andysowardsfan\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-16T00:30:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.andysowards.com\/blog\/assets\/object-oriented-php-for-beginners.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"281\" \/>\n\t<meta property=\"og:image:height\" content=\"193\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Diksha Arora\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@andysowards\" \/>\n<meta name=\"twitter:site\" content=\"@andysowards\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Diksha Arora\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/\",\"url\":\"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/\",\"name\":\"PHP is better Than You Thought It Would Be\",\"isPartOf\":{\"@id\":\"https:\/\/www.andysowards.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.andysowards.com\/blog\/assets\/object-oriented-php-for-beginners.jpg\",\"datePublished\":\"2013-02-16T00:30:07+00:00\",\"dateModified\":\"2013-02-16T00:30:07+00:00\",\"author\":{\"@id\":\"https:\/\/www.andysowards.com\/blog\/#\/schema\/person\/8ac3c9a5554845127cbefa59520870d9\"},\"description\":\"PHP is one of the most used programming languages of the world. It comes in different frameworks which take care of all the web development needs. However\",\"breadcrumb\":{\"@id\":\"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/#primaryimage\",\"url\":\"https:\/\/www.andysowards.com\/blog\/assets\/object-oriented-php-for-beginners.jpg\",\"contentUrl\":\"https:\/\/www.andysowards.com\/blog\/assets\/object-oriented-php-for-beginners.jpg\",\"width\":281,\"height\":193},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.andysowards.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP is better Than You Thought It Would Be\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.andysowards.com\/blog\/#website\",\"url\":\"https:\/\/www.andysowards.com\/blog\/\",\"name\":\"Daily Business Resources for Entrepreneurs, Web Designers, &amp; Creatives by Andy Sowards\",\"description\":\"Design Inspiration &amp; Business Resources for Creatives\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.andysowards.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.andysowards.com\/blog\/#\/schema\/person\/8ac3c9a5554845127cbefa59520870d9\",\"name\":\"Diksha Arora\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.andysowards.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/38500f1693567af8981e4d51cb0e724a?s=96&r=pg\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/38500f1693567af8981e4d51cb0e724a?s=96&r=pg\",\"caption\":\"Diksha Arora\"},\"description\":\"Diksha Arora is a writer\/marketer who loves to write on technologies and is working with ValueCoders, a Web\/mobile development firm, through which one can hire PHP developer. One can hire .Net developers here, too.\",\"url\":\"https:\/\/www.andysowards.com\/blog\/author\/dikshaarora\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP is better Than You Thought It Would Be","description":"PHP is one of the most used programming languages of the world. It comes in different frameworks which take care of all the web development needs. However","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/","og_locale":"en_US","og_type":"article","og_title":"PHP is better Than You Thought It Would Be","og_description":"PHP is one of the most used programming languages of the world. It comes in different frameworks which take care of all the web development needs. However","og_url":"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/","og_site_name":"Daily Business Resources for Entrepreneurs, Web Designers, &amp; Creatives by Andy Sowards","article_publisher":"http:\/\/facebook.com\/andysowardsfan","article_published_time":"2013-02-16T00:30:07+00:00","og_image":[{"width":281,"height":193,"url":"https:\/\/www.andysowards.com\/blog\/assets\/object-oriented-php-for-beginners.jpg","type":"image\/jpeg"}],"author":"Diksha Arora","twitter_card":"summary_large_image","twitter_creator":"@andysowards","twitter_site":"@andysowards","twitter_misc":{"Written by":"Diksha Arora","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/","url":"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/","name":"PHP is better Than You Thought It Would Be","isPartOf":{"@id":"https:\/\/www.andysowards.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/#primaryimage"},"image":{"@id":"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/#primaryimage"},"thumbnailUrl":"https:\/\/www.andysowards.com\/blog\/assets\/object-oriented-php-for-beginners.jpg","datePublished":"2013-02-16T00:30:07+00:00","dateModified":"2013-02-16T00:30:07+00:00","author":{"@id":"https:\/\/www.andysowards.com\/blog\/#\/schema\/person\/8ac3c9a5554845127cbefa59520870d9"},"description":"PHP is one of the most used programming languages of the world. It comes in different frameworks which take care of all the web development needs. However","breadcrumb":{"@id":"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/#primaryimage","url":"https:\/\/www.andysowards.com\/blog\/assets\/object-oriented-php-for-beginners.jpg","contentUrl":"https:\/\/www.andysowards.com\/blog\/assets\/object-oriented-php-for-beginners.jpg","width":281,"height":193},{"@type":"BreadcrumbList","@id":"https:\/\/www.andysowards.com\/blog\/2013\/php-is-better-than-you-thought-it-would-be\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.andysowards.com\/blog\/"},{"@type":"ListItem","position":2,"name":"PHP is better Than You Thought It Would Be"}]},{"@type":"WebSite","@id":"https:\/\/www.andysowards.com\/blog\/#website","url":"https:\/\/www.andysowards.com\/blog\/","name":"Daily Business Resources for Entrepreneurs, Web Designers, &amp; Creatives by Andy Sowards","description":"Design Inspiration &amp; Business Resources for Creatives","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.andysowards.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.andysowards.com\/blog\/#\/schema\/person\/8ac3c9a5554845127cbefa59520870d9","name":"Diksha Arora","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.andysowards.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/38500f1693567af8981e4d51cb0e724a?s=96&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/38500f1693567af8981e4d51cb0e724a?s=96&r=pg","caption":"Diksha Arora"},"description":"Diksha Arora is a writer\/marketer who loves to write on technologies and is working with ValueCoders, a Web\/mobile development firm, through which one can hire PHP developer. One can hire .Net developers here, too.","url":"https:\/\/www.andysowards.com\/blog\/author\/dikshaarora\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.andysowards.com\/blog\/wp-json\/wp\/v2\/posts\/18085"}],"collection":[{"href":"https:\/\/www.andysowards.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.andysowards.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.andysowards.com\/blog\/wp-json\/wp\/v2\/users\/122"}],"replies":[{"embeddable":true,"href":"https:\/\/www.andysowards.com\/blog\/wp-json\/wp\/v2\/comments?post=18085"}],"version-history":[{"count":0,"href":"https:\/\/www.andysowards.com\/blog\/wp-json\/wp\/v2\/posts\/18085\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.andysowards.com\/blog\/wp-json\/wp\/v2\/media\/18091"}],"wp:attachment":[{"href":"https:\/\/www.andysowards.com\/blog\/wp-json\/wp\/v2\/media?parent=18085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.andysowards.com\/blog\/wp-json\/wp\/v2\/categories?post=18085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.andysowards.com\/blog\/wp-json\/wp\/v2\/tags?post=18085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}