<?php$s = '1 2 7 8';$a = '1 7 8';$b = '1 2 8'; similar_text($s, $a, $x);similar_text($s, $b, $y); print_r(array($x, $y));
Standard input is empty
Array ( [0] => 83.333333333333 [1] => 83.333333333333 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!