I need to take two arrays and come up with a percent of similarity. ie:
array( 0=>'1' , 1=>'2' , 2=>'6' , 3=>array(0=>1))
vers
array( 0=>'1' , 1=>'45' , 2=>'6' , 3=>array(0=>1))
Where I would think that the % is 75
or
array( 0=>'1' , 1=>'2' , 2=>'6' , 3=>array(0=>'1'))
vers
array( 0=>'1' , 1=>'2' , 2=>'6' , 3=>array(0=>'55'))
Not sure how to approach this.. just need to end up with a workable float percent. Thank you .