bool readline_completion_function ( callback $function )
This function registers a completion function. This is the same kind of functionality you'd get if you hit your tab key while using Bash.
Returns TRUE on success or FALSE on failure.