{"id":15324,"date":"2016-11-29T16:15:49","date_gmt":"2016-11-29T14:15:49","guid":{"rendered":"http:\/\/www.webcodegeeks.com\/?p=15324"},"modified":"2018-01-09T10:04:21","modified_gmt":"2018-01-09T08:04:21","slug":"php-uppercase-lowercase-example","status":"publish","type":"post","link":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/","title":{"rendered":"PHP Uppercase And Lowercase Example"},"content":{"rendered":"<p>In this example we will\u00a0show you how to manipulate strings from uppercase to lowercase and from lowercase to uppercase with PHP. This is neccesary\u00a0when you need to format text.<br \/>\nFor this example we will use:<\/p>\n<ul>\n<li>A computer with PHP &gt;= 5.5 installed<\/li>\n<li>notepad++<\/li>\n<\/ul>\n<p>&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n&nbsp;<br \/>\n[ulp id=&#8217;8njY7i2QRy6sg8pg&#8217;]<\/p>\n<h2>1. Getting Started<\/h2>\n<p>Changing text from uppercase to lowercase or from lowercase to uppercase can become necessary when we are formating or reformatting text. We might need to do this, if for example we want the first letter of the first word in a paragraph to be in uppercase or we want all the words in a paragraph to be in lowercase.<\/p>\n<pre class=\"brush:bash\">According to library website PHP QR Code is open source (LGPL) library for generating QR Code, 2-dimensional barcode. Based on libqrencode C library, provides API for creating QR Code barcode images (PNG, JPEG thanks to GD2). Implemented purely in PHP.\r\nsome of the features of this library are\r\n<\/pre>\n<p>We want to convert the above text to:<\/p>\n<pre class=\"brush:bash\">According To Library Website PHP QR Code Is Open Source (LGPL) Library For Generating QR Code, 2-dimensional Barcode. Based On Libqrencode C Library, Provides API For Creating QR Code Barcode Images (PNG, JPEG thanks to GD2). Implemented Purely In PHP.\r\nSome Of The Features Of This Library Are\r\n<\/pre>\n<p>In the text above we have successfully converted the first\u00a0letter of each word to uppercase. PHP provides us with so many functions to carry out tasks like this. Lets take a look at some of this functions with some examples.<\/p>\n<h3>1.1 strtolower<\/h3>\n<p><code>strtolower<\/code> converts a string to lowercase. The parameter or arguement supplied to this function is the string we intend to manipulate or convert.<\/p>\n<pre class=\"brush:bash\">String strtolower(String text);\r\n\r\n<\/pre>\n<p>The function above returns the lowercased string.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>index.php<\/em><\/span><\/p>\n<pre class=\"brush:php\">&lt;!DOCTYPE html&gt; \r\n&lt;html lang=en&gt;\r\n\t&lt;head&gt;\r\n\t&lt;style&gt;\r\n\t&lt;\/style&gt;\r\n\r\n\t\t&lt;meta charset=\"utf-8\" \/&gt;\r\n\t\t&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi\"\/&gt;\r\n\r\n\t\t&lt;title&gt;\r\nPreviewing The QR Code Image\r\n\r\n&lt;\/title&gt;\r\n\t\t\r\n\t\t&lt;\/head&gt;\r\n\t&lt;body&gt;\r\n\t&lt;?php\r\n$text=\"According To Library Website PHP QR Code Is Open Source (LGPL) Library For Generating QR Code, 2-dimensional Barcode. Based On Libqrencode C Library, Provides API For Creating QR Code Barcode Images (PNG, JPEG thanks to GD2). Implemented Purely In PHP.\r\nSome Of The Features Of This Library Are\";\r\n\/\/ returns  according to library website php qr code is open source (lgpl) library for generating qr code, 2-dimensional barcode. based on libqrencode c library, provides api for creating qr code barcode images (png, jpeg thanks to gd2). implemented purely in php. some of the features of this library are\r\necho strtolower($text);\r\n\r\n?&gt;\r\n\t&lt;\/body&gt;\r\n\t&lt;\/html&gt;\r\n<\/pre>\n<p>In the example above we converted the whole text to lowercase with the <code>strtolower<\/code> function.<\/p>\n<h3>1.2 strtoupper<\/h3>\n<p><code>strtoupper<\/code> converts a string to uppercase. The parameter or arguement supplied to this function is the string we intend to manipulate or convert.<\/p>\n<pre class=\"brush:bash\">String strtoupper(String text);\r\n\r\n<\/pre>\n<p>The function above returns the uppercased string.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>index2.php<\/em><\/span><\/p>\n<pre class=\"brush:php\">&lt;!DOCTYPE html&gt; \r\n&lt;html lang=en&gt;\r\n\t&lt;head&gt;\r\n\t&lt;style&gt;\r\n\t&lt;\/style&gt;\r\n\r\n\t\t&lt;meta charset=\"utf-8\" \/&gt;\r\n\t\t&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi\"\/&gt;\r\n\r\n\t\t&lt;title&gt;\r\nPreviewing The QR Code Image\r\n\r\n&lt;\/title&gt;\r\n\t\t\r\n\t\t&lt;\/head&gt;\r\n\t&lt;body&gt;\r\n\t&lt;?php\r\n$text=\"According To Library Website PHP QR Code Is Open Source (LGPL) Library For Generating QR Code, 2-dimensional Barcode. Based On Libqrencode C Library, Provides API For Creating QR Code Barcode Images (PNG, JPEG thanks to GD2). Implemented Purely In PHP.\r\nSome Of The Features Of This Library Are\";\r\n\/\/ returns  ACCORDING TO LIBRARY WEBSITE PHP QR CODE IS OPEN SOURCE (LGPL) LIBRARY FOR GENERATING QR CODE, 2-DIMENSIONAL BARCODE. BASED ON LIBQRENCODE C LIBRARY, PROVIDES API FOR CREATING QR CODE BARCODE IMAGES (PNG, JPEG THANKS TO GD2). IMPLEMENTED PURELY IN PHP. SOME OF THE FEATURES OF THIS LIBRARY ARE\r\necho strtoupper($text);\r\n\r\n?&gt;\r\n\t&lt;\/body&gt;\r\n\t&lt;\/html&gt;\r\n<\/pre>\n<p>In the example above we converted the whole text to uppercase with <code>strtoupper<\/code> function<\/p>\n<h3>1.3 lcfirst<\/h3>\n<p><code>lcfirst<\/code> converts the first character or letter of a string to lowercase. The parameter or arguement supplied to this function is the string we intend to manipulate or convert.<\/p>\n<pre class=\"brush:bash\">String lcfirst(String text);\r\n\r\n<\/pre>\n<p>The function above returns the first character of the string as lowercased.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>index3.php<\/em><\/span><\/p>\n<pre class=\"brush:php\">&lt;!DOCTYPE html&gt; \r\n&lt;html lang=en&gt;\r\n\t&lt;head&gt;\r\n\t&lt;style&gt;\r\n\t&lt;\/style&gt;\r\n\r\n\t\t&lt;meta charset=\"utf-8\" \/&gt;\r\n\t\t&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi\"\/&gt;\r\n\r\n\t\t&lt;title&gt;\r\nPreviewing The QR Code Image\r\n\r\n&lt;\/title&gt;\r\n\t\t\r\n\t\t&lt;\/head&gt;\r\n\t&lt;body&gt;\r\n\t&lt;?php\r\n$text=\"According To Library Website PHP QR Code Is Open Source (LGPL) Library For Generating QR Code, 2-dimensional Barcode. Based On Libqrencode C Library, Provides API For Creating QR Code Barcode Images (PNG, JPEG thanks to GD2). Implemented Purely In PHP.\r\nSome Of The Features Of This Library Are\";\r\n\/\/ returns  according To Library Website PHP QR Code Is Open Source (LGPL) Library For Generating QR Code, 2-dimensional Barcode. Based On Libqrencode C Library, Provides API For Creating QR Code Barcode Images (PNG, JPEG thanks to GD2). Implemented Purely In PHP. Some Of The Features Of This Library Are\r\necho lcfirst($text);\r\n\r\n?&gt;\r\n\t&lt;\/body&gt;\r\n\t&lt;\/html&gt;\r\n<\/pre>\n<h3>1.4 ucfirst<\/h3>\n<p><code>ucfirst<\/code> converts the first character or letter of a string to uppercase. The parameter or arguement supplied to this function is the string we intend to manipulate or convert.<\/p>\n<pre class=\"brush:bash\">String ucfirst(String text);\r\n\r\n<\/pre>\n<p>The function above returns the first character of the string as uppercased.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>index4.php<\/em><\/span><\/p>\n<pre class=\"brush:php\">&lt;!DOCTYPE html&gt; \r\n&lt;html lang=en&gt;\r\n\t&lt;head&gt;\r\n\t&lt;style&gt;\r\n\t&lt;\/style&gt;\r\n\r\n\t\t&lt;meta charset=\"utf-8\" \/&gt;\r\n\t\t&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi\"\/&gt;\r\n\r\n\t\t&lt;title&gt;\r\nPreviewing The QR Code Image\r\n\r\n&lt;\/title&gt;\r\n\t\t\r\n\t\t&lt;\/head&gt;\r\n\t&lt;body&gt;\r\n\t&lt;?php\r\n$text=\"according to library website php qr code is open source (lgpl) library for generating qr code, 2-dimensional barcode. based on libqrencode c library, provides api for creating qr code barcode images (png, jpeg thanks to gd2). implemented purely in php. some of the features of this library are \";\r\n\/\/According to library website php qr code is open source (lgpl) library for generating qr code, 2-dimensional barcode. based on libqrencode c library, provides api for creating qr code barcode images (png, jpeg thanks to gd2). implemented purely in php. some of the features of this library are\r\necho ucfirst($text);\r\n\r\n?&gt;\r\n\t&lt;\/body&gt;\r\n\t&lt;\/html&gt;\r\n<\/pre>\n<h3>1.5 ucwords<\/h3>\n<p><code>ucwords<\/code> converts the first character of each word in a string to uppercase. The parameter or arguement supplied to this function is the string we intend to manipulate or convert.<\/p>\n<pre class=\"brush:bash\">String ucwords(String text);\r\n\r\n<\/pre>\n<p>The function above returns the first word of the string as uppercased.<\/p>\n<p><span style=\"text-decoration: underline;\"><em>index5.php<\/em><\/span><\/p>\n<pre class=\"brush:php\">&lt;!DOCTYPE html&gt; \r\n&lt;html lang=en&gt;\r\n\t&lt;head&gt;\r\n\t&lt;style&gt;\r\n\t&lt;\/style&gt;\r\n\r\n\t\t&lt;meta charset=\"utf-8\" \/&gt;\r\n\t\t&lt;meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densitydpi=device-dpi\"\/&gt;\r\n\r\n\t\t&lt;title&gt;\r\nPreviewing The QR Code Image\r\n\r\n&lt;\/title&gt;\r\n\t\t\r\n\t\t&lt;\/head&gt;\r\n\t&lt;body&gt;\r\n\t&lt;?php\r\n$text=\"according to library website php qr code is open source (lgpl) library for generating qr code, 2-dimensional barcode. based on libqrencode c library, provides api for creating qr code barcode images (png, jpeg thanks to gd2). implemented purely in php. some of the features of this library are \";\r\n\/\/According To Library Website Php Qr Code Is Open Source (lgpl) Library For Generating Qr Code, 2-dimensional Barcode. Based On Libqrencode C Library, Provides Api For Creating Qr Code Barcode Images (png, Jpeg Thanks To Gd2). Implemented Purely In Php. Some Of The Features Of This Library Are\r\necho ucwords($text);\r\n\r\n?&gt;\r\n\t&lt;\/body&gt;\r\n\t&lt;\/html&gt;\r\n<\/pre>\n<h2>2. Summary<\/h2>\n<p>In this example we learnt how to convert strings from uppercase to lowercase and from lowercase to uppercase. We learnt about PHP <code>ucwords<\/code>, <code>ucfirst<\/code>, <code>lcfirst<\/code>, <code>strtoupper<\/code>, <code>strtolower<\/code> function.<\/p>\n<h2>3. Download the source code<\/h2>\n<div class=\"download\">\n<p><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here:\u00a0<strong><a href=\"http:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2016\/11\/phpuppercaseandlowercase.zip\">phpuppercaseandlowercase<\/a><\/strong><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this example we will\u00a0show you how to manipulate strings from uppercase to lowercase and from lowercase to uppercase with PHP. This is neccesary\u00a0when you need to format text. For this example we will use: A computer with PHP &gt;= 5.5 installed notepad++ &nbsp; &nbsp; &nbsp; &nbsp; [ulp id=&#8217;8njY7i2QRy6sg8pg&#8217;] 1. Getting Started Changing text from &hellip;<\/p>\n","protected":false},"author":164,"featured_media":930,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-15324","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>PHP Uppercase And Lowercase Example - Web Code Geeks - 2026<\/title>\n<meta name=\"description\" content=\"In this example we will\u00a0show you how to manipulate strings from uppercase to lowercase and from lowercase to uppercase with PHP. This is neccesary\u00a0when\" \/>\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.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PHP Uppercase And Lowercase Example - Web Code Geeks - 2026\" \/>\n<meta property=\"og:description\" content=\"In this example we will\u00a0show you how to manipulate strings from uppercase to lowercase and from lowercase to uppercase with PHP. This is neccesary\u00a0when\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webcodegeeks\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-29T14:15:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-01-09T08:04:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Olayemi Odunayo\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:site\" content=\"@webcodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olayemi Odunayo\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/\"},\"author\":{\"name\":\"Olayemi Odunayo\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8\"},\"headline\":\"PHP Uppercase And Lowercase Example\",\"datePublished\":\"2016-11-29T14:15:49+00:00\",\"dateModified\":\"2018-01-09T08:04:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/\"},\"wordCount\":432,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/\",\"name\":\"PHP Uppercase And Lowercase Example - Web Code Geeks - 2026\",\"isPartOf\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"datePublished\":\"2016-11-29T14:15:49+00:00\",\"dateModified\":\"2018-01-09T08:04:21+00:00\",\"description\":\"In this example we will\u00a0show you how to manipulate strings from uppercase to lowercase and from lowercase to uppercase with PHP. This is neccesary\u00a0when\",\"breadcrumb\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#primaryimage\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg\",\"width\":150,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.webcodegeeks.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PHP\",\"item\":\"https:\/\/www.webcodegeeks.com\/category\/php\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"PHP Uppercase And Lowercase Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#website\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"name\":\"Web Code Geeks\",\"description\":\"Web Developers Resource Center\",\"publisher\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.webcodegeeks.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\/\/www.webcodegeeks.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"contentUrl\":\"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webcodegeeks\",\"https:\/\/x.com\/webcodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8\",\"name\":\"Olayemi Odunayo\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g\",\"caption\":\"Olayemi Odunayo\"},\"description\":\"I am a programmer and web developer, who has experience in developing websites and writing desktop and mobile applications. I have worked with both schematic and schemaless databases. I am also familiar with third party API and working with cloud servers. I do programming on the client side with Java, JavaScript, html, Ajax and CSS while I use PHP for server side programming.\",\"sameAs\":[\"https:\/\/www.webcodegeeks.com\/\"],\"url\":\"https:\/\/www.webcodegeeks.com\/author\/olayemi-odunayo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PHP Uppercase And Lowercase Example - Web Code Geeks - 2026","description":"In this example we will\u00a0show you how to manipulate strings from uppercase to lowercase and from lowercase to uppercase with PHP. This is neccesary\u00a0when","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.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/","og_locale":"en_US","og_type":"article","og_title":"PHP Uppercase And Lowercase Example - Web Code Geeks - 2026","og_description":"In this example we will\u00a0show you how to manipulate strings from uppercase to lowercase and from lowercase to uppercase with PHP. This is neccesary\u00a0when","og_url":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/","og_site_name":"Web Code Geeks","article_publisher":"https:\/\/www.facebook.com\/webcodegeeks","article_published_time":"2016-11-29T14:15:49+00:00","article_modified_time":"2018-01-09T08:04:21+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","type":"image\/jpeg"}],"author":"Olayemi Odunayo","twitter_card":"summary_large_image","twitter_creator":"@webcodegeeks","twitter_site":"@webcodegeeks","twitter_misc":{"Written by":"Olayemi Odunayo","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#article","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/"},"author":{"name":"Olayemi Odunayo","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8"},"headline":"PHP Uppercase And Lowercase Example","datePublished":"2016-11-29T14:15:49+00:00","dateModified":"2018-01-09T08:04:21+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/"},"wordCount":432,"commentCount":1,"publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/","url":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/","name":"PHP Uppercase And Lowercase Example - Web Code Geeks - 2026","isPartOf":{"@id":"https:\/\/www.webcodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#primaryimage"},"image":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#primaryimage"},"thumbnailUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","datePublished":"2016-11-29T14:15:49+00:00","dateModified":"2018-01-09T08:04:21+00:00","description":"In this example we will\u00a0show you how to manipulate strings from uppercase to lowercase and from lowercase to uppercase with PHP. This is neccesary\u00a0when","breadcrumb":{"@id":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#primaryimage","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2014\/10\/php-logo.jpg","width":150,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/www.webcodegeeks.com\/php\/php-uppercase-lowercase-example\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webcodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"PHP","item":"https:\/\/www.webcodegeeks.com\/category\/php\/"},{"@type":"ListItem","position":3,"name":"PHP Uppercase And Lowercase Example"}]},{"@type":"WebSite","@id":"https:\/\/www.webcodegeeks.com\/#website","url":"https:\/\/www.webcodegeeks.com\/","name":"Web Code Geeks","description":"Web Developers Resource Center","publisher":{"@id":"https:\/\/www.webcodegeeks.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webcodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webcodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.webcodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.webcodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webcodegeeks","https:\/\/x.com\/webcodegeeks"]},{"@type":"Person","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/417918d9b5811210265e8590509718b8","name":"Olayemi Odunayo","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webcodegeeks.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/016b2a353262962fceecf5c274161cd9ef60fdf1593ec95e71d37f5fd9b444f6?s=96&d=mm&r=g","caption":"Olayemi Odunayo"},"description":"I am a programmer and web developer, who has experience in developing websites and writing desktop and mobile applications. I have worked with both schematic and schemaless databases. I am also familiar with third party API and working with cloud servers. I do programming on the client side with Java, JavaScript, html, Ajax and CSS while I use PHP for server side programming.","sameAs":["https:\/\/www.webcodegeeks.com\/"],"url":"https:\/\/www.webcodegeeks.com\/author\/olayemi-odunayo\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/15324","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/users\/164"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/comments?post=15324"}],"version-history":[{"count":0,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/posts\/15324\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media\/930"}],"wp:attachment":[{"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/media?parent=15324"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/categories?post=15324"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webcodegeeks.com\/wp-json\/wp\/v2\/tags?post=15324"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}