{"action":"created","issue":{"url":"https://api.github.com/repos/rainphp/raintpl3/issues/174","labels_url":"https://api.github.com/repos/rainphp/raintpl3/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/rainphp/raintpl3/issues/174/comments","events_url":"https://api.github.com/repos/rainphp/raintpl3/issues/174/events","html_url":"https://github.com/rainphp/raintpl3/issues/174","id":70421282,"number":174,"title":"Idea: Easier Ruby/Python-like substr","user":{"login":"webnull","id":372403,"avatar_url":"https://avatars.githubusercontent.com/u/372403?v=3","gravatar_id":"","url":"https://api.github.com/users/webnull","html_url":"https://github.com/webnull","followers_url":"https://api.github.com/users/webnull/followers","following_url":"https://api.github.com/users/webnull/following{/other_user}","gists_url":"https://api.github.com/users/webnull/gists{/gist_id}","starred_url":"https://api.github.com/users/webnull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webnull/subscriptions","organizations_url":"https://api.github.com/users/webnull/orgs","repos_url":"https://api.github.com/users/webnull/repos","events_url":"https://api.github.com/users/webnull/events{/privacy}","received_events_url":"https://api.github.com/users/webnull/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-23T14:09:48Z","updated_at":"2015-04-24T03:19:07Z","closed_at":null,"body":"Hello, \r\n\r\nIn Ruby and Python there is a possibility to use an array modifier to cut off a string.\r\n\r\nExample from Ruby:\r\n```\r\ntestVariable[0..5]\r\n```\r\n\r\nExample from Python:\r\n```\r\ntestVariable[0:5]\r\n# or\r\ntestVariable[:5]\r\n```\r\n\r\nWhat do you think about moving it to RainTPL parser? I mean to RainTPL4 now."},"comment":{"url":"https://api.github.com/repos/rainphp/raintpl3/issues/comments/95786913","html_url":"https://github.com/rainphp/raintpl3/issues/174#issuecomment-95786913","issue_url":"https://api.github.com/repos/rainphp/raintpl3/issues/174","id":95786913,"user":{"login":"rainphp","id":540035,"avatar_url":"https://avatars.githubusercontent.com/u/540035?v=3","gravatar_id":"","url":"https://api.github.com/users/rainphp","html_url":"https://github.com/rainphp","followers_url":"https://api.github.com/users/rainphp/followers","following_url":"https://api.github.com/users/rainphp/following{/other_user}","gists_url":"https://api.github.com/users/rainphp/gists{/gist_id}","starred_url":"https://api.github.com/users/rainphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainphp/subscriptions","organizations_url":"https://api.github.com/users/rainphp/orgs","repos_url":"https://api.github.com/users/rainphp/repos","events_url":"https://api.github.com/users/rainphp/events{/privacy}","received_events_url":"https://api.github.com/users/rainphp/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T03:19:07Z","updated_at":"2015-04-24T03:19:07Z","body":"That'd be great. Python array modifier is a great feature missing to PHP.\n\nOn Thu, Apr 23, 2015 at 10:09 AM, Damian <notifications@github.com> wrote:\n\n> Hello,\n>\n> In Ruby and Python there is a possibility to use an array modifier to cut\n> off a string.\n>\n> Example from Ruby:\n>\n> testVariable[0..5]\n>\n> Example from Python:\n>\n> testVariable[0:5]\n> # or\n> testVariable[:5]\n>\n> What do you think about moving it to RainTPL parser? I mean to RainTPL4\n> now.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/rainphp/raintpl3/issues/174>.\n>\n"}}