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

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

string:contains_any_of_these?('my friend',['my','enemy'])
#=> TRUE

string:contains_any_of_these?('my friend',['m','f','z','1'])
#=> TRUE

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

# note: empty string does not exist in any string!
string:contains_any_of_these?('my friend',[''])
#=> FALSE

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