{"id":186,"date":"2009-02-12T15:05:08","date_gmt":"2009-02-12T22:05:08","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=767"},"modified":"2009-02-12T15:05:08","modified_gmt":"2009-02-12T22:05:08","slug":"substr-remove-first-character","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=186","title":{"rendered":"substr() Remove First Character"},"content":{"rendered":"<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\nvar someString:String = &quot;_file&quot;;\r\ntrace(someString.substr(1));\r\n\/*\r\nouptuts:\r\nfile\r\n*\/\r\n<\/pre>\n<p>Turns out the second argument of substr() is optional&#8230;.. not sure how I never noticed that before.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>var someString:String = &quot;_file&quot;; trace(someString.substr(1)); \/* ouptuts: file *\/ Turns out the second argument of substr() is optional&#8230;.. not sure how I never noticed that before.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,21],"tags":[3,4],"class_list":["post-186","post","type-post","status-publish","format-standard","hentry","category-string-manipulation","category-strings","tag-actionscript","tag-flash"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=186"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/186\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}