{"id":3855,"date":"2022-11-21T13:47:22","date_gmt":"2022-11-21T13:47:22","guid":{"rendered":"https:\/\/info.documotor.com\/?page_id=3855"},"modified":"2023-04-19T08:45:27","modified_gmt":"2023-04-19T08:45:27","slug":"to_sentencecase","status":"publish","type":"page","link":"https:\/\/info.documotor.com\/?page_id=3855","title":{"rendered":"To_sentencecase"},"content":{"rendered":"\n<p>The function <code>to_sentencecase<\/code> can be used to transform the casing of a string to sentence case.<\/p>\n\n\n\n<h3>Syntax<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">string to_sentencecase(string $input)<\/code><\/pre>\n\n\n\n<p>Formats a string into sentence case i.e. first letter of every sentence is set to uppercase and the remaining letters are set to lowercase.<\/p>\n\n\n\n<h3>Parameters<\/h3>\n\n\n\n<p><strong>$input: <\/strong>The string to transform casing. <\/p>\n\n\n\n<h3>Example<\/h3>\n\n\n\n<pre title=\"Data\" class=\"wp-block-code\"><code lang=\"json\" class=\"language-json line-numbers\">{\n    \"a\": \"change casing to sentence\"\n}<\/code><\/pre>\n\n\n\n<pre title=\"Transformation\" class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash line-numbers\">{\n    NewString: to_sentencecase(a)\n}<\/code><\/pre>\n\n\n\n<pre title=\"Output\" class=\"wp-block-code\"><code lang=\"json\" class=\"language-json line-numbers\">{\n    \"NewString\": \"Change casing to sentence\"\n}<\/code><\/pre>\n\n\n\n<p>In this example the casing of the string is changed to sentence case.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The function to_sentencecase can be used to transform the casing of a string to sentence case. Syntax Formats a string into sentence case i.e. first letter of every sentence is set to uppercase and the remaining letters are set to lowercase. Parameters $input: The string to transform casing. Example In this example the casing of [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":271,"menu_order":196,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/3855"}],"collection":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/info.documotor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3855"}],"version-history":[{"count":9,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/3855\/revisions"}],"predecessor-version":[{"id":3969,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/3855\/revisions\/3969"}],"up":[{"embeddable":true,"href":"https:\/\/info.documotor.com\/index.php?rest_route=\/wp\/v2\/pages\/271"}],"wp:attachment":[{"href":"https:\/\/info.documotor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}