{"id":342,"date":"2024-10-04T13:59:28","date_gmt":"2024-10-04T12:59:28","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=342"},"modified":"2025-09-28T07:22:30","modified_gmt":"2025-09-28T06:22:30","slug":"included-string-functions","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/included-string-functions\/","title":{"rendered":"Included String Functions"},"content":{"rendered":"<p>Mwnci string functions that are not part of the builtin functions can be loaded with<\/p>\n<pre>include(\"string\")<\/pre>\n<h2>Functions<\/h2>\n<div class=\"table-wrap\">\n<table class=\"confluenceTable\">\n<tbody>\n<tr>\n<td class=\"confluenceTd\"><strong>Command<\/strong><\/td>\n<td class=\"confluenceTd\"><strong>Definition<\/strong><\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-capitalize-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">capitialize()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns a string where the first character is upper case, and the rest is lower case.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mnwci-center-function\/&quot;\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">center()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns centered string.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-isalum-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">isalnum()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns true if all characters in the string are alphanumeric.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-isalpha-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">isalpha()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns true if all characters in the string are in the alphabet<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-islower-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">islower()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns true if all characters in the string are in lower case<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-isnum-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">isnum()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns true if all characters in the string are numeric.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-isspace-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">isspace()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns true if all characters in the string are whitespaces.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-istitle-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">istitle()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns true if the string follows the rules of a title.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-isupper-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">isupper()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns true if all characters in the string are upper case.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-ljust-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">ljust()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns a left justified version of the string.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-partition-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">partition()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns an array where the string is parted into three parts.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-rjust-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">rjust()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Returns a right justified version of the string.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-swapcase-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">swapcase()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Swaps cases, lower case becomes upper case and vice versa.<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-title-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">title()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Converts the first character of each word to upper case<\/td>\n<\/tr>\n<tr>\n<td class=\"confluenceTd\" colspan=\"1\"><a class=\"conf-macro output-inline\" href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-zfill-function\/\" data-macro-name=\"sp-nobody-link\" data-hasbody=\"false\">zfill()<\/a><\/td>\n<td class=\"confluenceTd\" colspan=\"1\">Adds zeros (0) at the beginning of the string<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Mwnci string functions that are not part of the builtin functions can be loaded with include(&#8220;string&#8221;) Functions Command Definition capitialize() Returns a string where the first character is upper case, and the rest is lower case. center() Returns centered string. isalnum() Returns true if all characters in the string are alphanumeric. isalpha() Returns true if &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/included-string-functions\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Included String Functions&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-342","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=342"}],"version-history":[{"count":12,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/342\/revisions"}],"predecessor-version":[{"id":1230,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/342\/revisions\/1230"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}