CallbackFilterIterator::accept

(PHP 5 >= 5.4.0, PHP 7)

CallbackFilterIterator::acceptCalls the callback with the current value, the current key and the inner iterator as arguments

说明

public CallbackFilterIterator::accept ( void ) : bool

This method calls the callback with the current value, current key and the inner iterator.

The callback is expected to return TRUE if the current item is to be accepted, or FALSE otherwise.

参数

此函数没有参数。

返回值

Returns TRUE to accept the current item, or FALSE otherwise.

参见

相关文章
php cachingiterator returns the inner iteratorphp cachingiterator check whether the inner iterator has a valid next elementphp callbackfilteriterator calls the callback with the current value the current key and the inner iterator as argumentsphp chdb gets the value associated with a keyphp map returns the value for a given keyphp map removes and returns a value by keyphp filesystemiterator retrieve the key for the current filephp ibm db2 函数 returns the width of the current value of the indicated column in a result setphp ldap 函数 get the current value for given optionphp harudoc get current value of the specified document attributephp harupage set the current value of the miter limit of the pagephp outeriterator returns the inner iterator for the current entryphp parentiterator check whether the inner iterator s current element has childrenphp recursivecachingiterator check whether the current element of the inner iterator has childrenphp recursivecallbackfilteriterator return the inner iterator s children contained in a recursivecallbackfilteriteratorphp recursivecallbackfilteriterator check whether the inner iterator s current element has childrenphp recursivefilteriterator check whether the inner iterator s current element has childrenphp swoole connection iterator return key of the current connection.php swoole server delay execution of the callback function at the end of current eventloop.php swoole table decrement the value in the swoole table by $row key and $column key.
关注编程学问公众号