SimilarText\Finder::all PHP Method

all() public method

Return all strings in sorted match order.
public all ( ) : array
return array
    public function all()
    {
        $this->sortHaystack();
        return array_keys($this->sorted_haystack);
    }

Usage Example

 /**
  * Test all() method
  */
 public function testAll()
 {
     $text_finder = new Finder('bananna', ['apple', 'kiwi', 'Ü◘ö']);
     $this->assertCount(3, $text_finder->all());
 }