libPhonetiq is copyright of Richard Carson, 2014 and is released under V3 of the GPL
Before starting a search, the begin($query) function must be called with a search query as it's argument.
Afterwords, call next($row) for each row in which you wish to search. $row must be an array of strings.
When you call next() on a row, it will return either a score, or false if that score is too low to be included in results.