I am trying to push values onto an array like so:
$scoreValues[$i][] = $percent ;
$scoreValues[$i][] = '<span id="item'.$i.'" class="suggestElement" data-entityid="'.$row['id'].'" data-match="'.$percent.'">'.rawurldecode($row['name']).'</span>' ;
I basically want to link together the $percent with the string, so I get an output like:
array (0 > array('46.5', '<span etc etc')
I then plan to sort by the percent sub-array so I have the highest scoring strings at the top.