Return last string character

Uses substr() to return last character.. Read more.

php
fork add to bundle source
function last_string_char($string) { return substr($string, -1); }

usage

load_function('last_string_char'); echo last_string_char('Politicians'); // s
← how to use this in app?
create log ...inout