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')

Want to kickstart your project?Use the new AI Studio to create your code