Return first string character

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

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

usage

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