Yngvarr

Generation

generate functionTue, 15 Nov 2022

выбрать и вернуть самый большой массив

function find_longest_word($a) { $longest_word = ''; foreach($a as $word) { if(strlen($word) > strlen($longest_word)) { $longest_word = $word; } } return $longest_word; }

Questions about programming?Chat with your personal AI assistant