Yngvarr

Generation

generate functionSun, 19 Feb 2023

replace firts 5 symbols

function cut_string($s) { return $s.length > 5 ? substr($s, 0, 5) : $s; } cut_string('abcdefghijklm')

Questions about programming?Chat with your personal AI assistant