{"id":3138,"date":"2019-06-13T00:03:13","date_gmt":"2019-06-13T00:03:13","guid":{"rendered":"http:\/\/softlect.in\/?p=3138"},"modified":"2019-06-13T00:35:45","modified_gmt":"2019-06-13T00:35:45","slug":"php-strings","status":"publish","type":"post","link":"http:\/\/softlect.com\/index.php\/php-strings\/","title":{"rendered":"PHP Strings"},"content":{"rendered":"<p>String Operations:<\/p>\n<p>Concatenation Operator:\u00a0 .<\/p>\n<p>String variables individual characters can be accessed through { }<\/p>\n<p>Index of characters in string starts with zero<\/p>\n<p>String Functions:<\/p>\n<p>strlen()<\/p>\n<p>strcmp()<\/p>\n<p>strpos()<\/p>\n<p>substr()<\/p>\n<p>chop()<\/p>\n<p>trim()<\/p>\n<p>ltrim()<\/p>\n<p>strtolower()<\/p>\n<p>strtoupper()<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Type Conversion:<\/p>\n<p>In PHP Explicit type conversion can be performed in three different ways:<\/p>\n<ul>\n<li>Type Casting for example $sum = 10.78; (int)$sum will be 10<\/li>\n<li>Type conversion functions: intval, doubleval, strval ex: intval($sum)<\/li>\n<li>settype function: takes two parameters: variable and string specifying type name. Ex: settype($sum,\u201dinteger\u201d);<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>String Operations: Concatenation Operator:\u00a0 . String variables individual characters can be accessed through { } Index of characters in string starts with zero String Functions: strlen() strcmp() strpos() substr() chop()&hellip; <\/p>\n","protected":false},"author":1,"featured_media":3178,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[82],"tags":[],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts\/3138"}],"collection":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/comments?post=3138"}],"version-history":[{"count":2,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts\/3138\/revisions"}],"predecessor-version":[{"id":3161,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/posts\/3138\/revisions\/3161"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/media\/3178"}],"wp:attachment":[{"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/media?parent=3138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/categories?post=3138"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/softlect.com\/index.php\/wp-json\/wp\/v2\/tags?post=3138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}