Is it possible to check if an array contains at least one value from a string? The string is an outputted list (see below).
This is my array, let's call it $data
Array ( [0] => finance-accounting-banking [1] => fixed-term [2] => human-resources [3] => international [4] => logistics-supply-chain [5] => management [6] => marketing )
And this is my outputted list, let's call it $types.
fixed-term|marketing
I thought this might've worked but no such luck...
if (in_array($types, $data))