Question whether a string contains all of the substrings provided by an array

string:contains_all_of_these?(STRING $string, ARRAY $substrings) : BOOL

$str = 'my friend';
string:contains_all_of_these?($str, ['my','friend'])
#=> TRUE

string:contains_all_of_these?($str,['m','f'])
#=> TRUE

# note: this function is case sensitive
string:contains_all_of_these?('my friend',['Friend'])
#=> FALSE

string:contains_all_of_these?('my friend',[])
#=> FALSE

string:contains_all_of_these?('my friend',[''])
#=> FALSE

Copyright ©2013-2022 SunSed®. All rights reserved.