ftsugadd('key', 'hello', 2, (new SugAddArguments())->payload('payload')); echo 'Suggestions dictionary length: ' . $client->ftsuglen('key') . "\n"; // 2. Perform fuzzy search by prefix to get previous suggestion with payload $response = $client->ftsugget('key', 'hellp', (new SugGetArguments())->fuzzy()->withPayloads()); echo 'Suggestion for "hellp" prefix:' . "\n"; print_r($response); // 3. Removes previous suggestion from key $client->ftsugdel('key', 'hello'); $response = $client->ftsugget('key', 'hello'); echo 'Suggestions, after removing "hello" suggestion:' . "\n"; print_r($response);