{"id":1383,"date":"2015-04-21T20:43:05","date_gmt":"2015-04-21T20:43:05","guid":{"rendered":"http:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language"},"modified":"2020-06-16T04:25:21","modified_gmt":"2020-06-16T04:25:21","slug":"is-php-a-case-sensitive-language","status":"publish","type":"faq","link":"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/","title":{"rendered":"Is PHP a case sensitive language?"},"content":{"rendered":"\n<p>In PHP, variable names are case-sensitive but function names are not case sensitive.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Explanation:<\/h4>\n\n\n\n<ul class=\"wp-block-list\"><li>If you defined variable in lowercase, then you need to use it in lowercase everywhere in the program. If we define a variable <code>$name = \"James\";<\/code> then we must need to use $name. $NAME will not work<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>If you defined function name in lowercase, but calling them in uppercase it will work. For example, If we define <code>function sum() {}<\/code> then calling SUM() will also work.<\/li><\/ul>\n\n\n\t<div class=\"icon-box\">\r\n\t\t<div class=\"icon-box-content tips-icon\" title=\"Notes & Tips\"><span class=\"dashicons dashicons-lightbulb\"><\/span><\/div>\r\n\t\t<div class=\"tips-box-content\">\r\n\t\t\t<strong>Note:<\/strong> \nFunction names are case-insensitive, though it is good to call functions in the same case as they appear in their declaration for consistency.\n\t\t<\/div>\r\n\t<\/div>\r\n\r\n\n","protected":false},"excerpt":{"rendered":"<p>In PHP, variable names are case-sensitive but function names are not case sensitive. Explanation: If you defined variable in lowercase, then you need to use it in lowercase everywhere in the program&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"faq_type":[122,84,93],"keywords":[113],"class_list":["post-1383","faq","type-faq","status-publish","hentry","faq_type-all-php-interview-questions-answers","faq_type-php","faq_type-php-interview-questions-answers-for-freshers","keywords-php-variables"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Is PHP a case sensitive language? - FAQs - Tutorials Class<\/title>\n<meta name=\"description\" content=\"Is PHP a case sensitive language? In PHP, variable names are case-sensitive but function names are not case sensitive. Learn more for better understanding here.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Is PHP a case sensitive language? - FAQs - Tutorials Class\" \/>\n<meta property=\"og:description\" content=\"Is PHP a case sensitive language? In PHP, variable names are case-sensitive but function names are not case sensitive. Learn more for better understanding here.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/\" \/>\n<meta property=\"og:site_name\" content=\"Tutorials Class\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/tutorialsclass\" \/>\n<meta property=\"article:modified_time\" content=\"2020-06-16T04:25:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/07\/tutorials-class-logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@TutorialsClass\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/\",\"url\":\"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/\",\"name\":\"Is PHP a case sensitive language? - FAQs - Tutorials Class\",\"isPartOf\":{\"@id\":\"https:\/\/tutorialsclass.com\/#website\"},\"datePublished\":\"2015-04-21T20:43:05+00:00\",\"dateModified\":\"2020-06-16T04:25:21+00:00\",\"description\":\"Is PHP a case sensitive language? In PHP, variable names are case-sensitive but function names are not case sensitive. Learn more for better understanding here.\",\"breadcrumb\":{\"@id\":\"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tutorialsclass.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FAQs\",\"item\":\"https:\/\/tutorialsclass.com\/faq\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PHP Interview Questions\",\"item\":\"https:\/\/tutorialsclass.com\/faqs\/php\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"All PHP Interview Questions &amp; Answers\",\"item\":\"https:\/\/tutorialsclass.com\/faqs\/php\/all-php-interview-questions-answers\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Is PHP a case sensitive language?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tutorialsclass.com\/#website\",\"url\":\"https:\/\/tutorialsclass.com\/\",\"name\":\"Tutorials Class\",\"description\":\"Online Tutorials for Beginners\",\"publisher\":{\"@id\":\"https:\/\/tutorialsclass.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tutorialsclass.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/tutorialsclass.com\/#organization\",\"name\":\"Tutorials Class\",\"url\":\"https:\/\/tutorialsclass.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png\",\"contentUrl\":\"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png\",\"width\":442,\"height\":94,\"caption\":\"Tutorials Class\"},\"image\":{\"@id\":\"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/tutorialsclass\",\"https:\/\/x.com\/TutorialsClass\",\"https:\/\/in.pinterest.com\/merientinfotech\/boards\/\",\"https:\/\/www.youtube.com\/channel\/UCzbpQXlqec-bQf1_kwrTuoA\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Is PHP a case sensitive language? - FAQs - Tutorials Class","description":"Is PHP a case sensitive language? In PHP, variable names are case-sensitive but function names are not case sensitive. Learn more for better understanding here.","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:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/","og_locale":"en_US","og_type":"article","og_title":"Is PHP a case sensitive language? - FAQs - Tutorials Class","og_description":"Is PHP a case sensitive language? In PHP, variable names are case-sensitive but function names are not case sensitive. Learn more for better understanding here.","og_url":"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/","og_site_name":"Tutorials Class","article_publisher":"https:\/\/www.facebook.com\/tutorialsclass","article_modified_time":"2020-06-16T04:25:21+00:00","og_image":[{"width":600,"height":600,"url":"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/07\/tutorials-class-logo.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@TutorialsClass","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/","url":"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/","name":"Is PHP a case sensitive language? - FAQs - Tutorials Class","isPartOf":{"@id":"https:\/\/tutorialsclass.com\/#website"},"datePublished":"2015-04-21T20:43:05+00:00","dateModified":"2020-06-16T04:25:21+00:00","description":"Is PHP a case sensitive language? In PHP, variable names are case-sensitive but function names are not case sensitive. Learn more for better understanding here.","breadcrumb":{"@id":"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/tutorialsclass.com\/faq\/is-php-a-case-sensitive-language\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tutorialsclass.com\/"},{"@type":"ListItem","position":2,"name":"FAQs","item":"https:\/\/tutorialsclass.com\/faq\/"},{"@type":"ListItem","position":3,"name":"PHP Interview Questions","item":"https:\/\/tutorialsclass.com\/faqs\/php\/"},{"@type":"ListItem","position":4,"name":"All PHP Interview Questions &amp; Answers","item":"https:\/\/tutorialsclass.com\/faqs\/php\/all-php-interview-questions-answers\/"},{"@type":"ListItem","position":5,"name":"Is PHP a case sensitive language?"}]},{"@type":"WebSite","@id":"https:\/\/tutorialsclass.com\/#website","url":"https:\/\/tutorialsclass.com\/","name":"Tutorials Class","description":"Online Tutorials for Beginners","publisher":{"@id":"https:\/\/tutorialsclass.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tutorialsclass.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/tutorialsclass.com\/#organization","name":"Tutorials Class","url":"https:\/\/tutorialsclass.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/","url":"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png","contentUrl":"https:\/\/tutorialsclass.com\/wp-content\/uploads\/2020\/05\/tutorials-class-logo.png","width":442,"height":94,"caption":"Tutorials Class"},"image":{"@id":"https:\/\/tutorialsclass.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/tutorialsclass","https:\/\/x.com\/TutorialsClass","https:\/\/in.pinterest.com\/merientinfotech\/boards\/","https:\/\/www.youtube.com\/channel\/UCzbpQXlqec-bQf1_kwrTuoA"]}]}},"_links":{"self":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/faq\/1383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/comments?post=1383"}],"version-history":[{"count":8,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/faq\/1383\/revisions"}],"predecessor-version":[{"id":6354,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/faq\/1383\/revisions\/6354"}],"wp:attachment":[{"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/media?parent=1383"}],"wp:term":[{"taxonomy":"faq_type","embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/faq_type?post=1383"},{"taxonomy":"keywords","embeddable":true,"href":"https:\/\/tutorialsclass.com\/wp-json\/wp\/v2\/keywords?post=1383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}