Yngvarr

Generation

generate functionSun, 19 Feb 2023

get last 5 symbols

function last5($str) { if (strlen($str) > 5) { return substr($str, -5); } else { return $str; } } last5('123456')

Questions about programming?Chat with your personal AI assistant