I have an two variables as CSV strings.
Example:
$csva = "1,4,7,10,39,12";
$csvb = "4,1,12";
I want to search if all elements in $csvb exist in $csva.
Is there a simple function to do this?
Note: I know we can loop through this to compare each element. But I am wondering if there is any php function to do this.
Any ideas?
http://codepad.org/nA2P6FCH