I have data stored in a string: such as $string='12';
'12' represents 2 pieces of data, 1
and 2
In 3 columns, I have those same ids stored, the array comes out as :
ex1: $array= ('num1' => 1, 'num2' => 2, 'num3' => )
ex2: $array= ('num1' => 5, 'num2' => 4, 'num3' => 3)
How could I compare these and return true if the numbers exist in both places?
For instance: using the above example:
for ex1:
12
would return TRUE
34
would return FALSE
for ex2:
345
would return TRUE