International PHP Conference Munich 2025

Voting

: five plus one?
(Example: nine)

The Note You're Voting On

i dot a dot belousov dot 88 at gmail dot com
1 year ago
If you want to use autocomplete also for history, you can make it like this:

readline_completion_function(function($input, $index) {
$matches = [];

foreach(readline_list_history() as $match)
if (mb_strpos($match, readline_info("line_buffer")) !== false)
$matches[] = mb_substr($match, $index);

return (count($matches) > 1 && $index) ? [] : $matches;
});

<< Back to user notes page

To Top