diff --git a/php_bencode_doc.php b/php_bencode_doc.php index 8c89f75..c1901e3 100644 --- a/php_bencode_doc.php +++ b/php_bencode_doc.php @@ -201,6 +201,15 @@ function encode() { } + /** + * @param string|int $needle + * @param int $mode 0: search keys; 1: search values + * @return string[] paths of the matching entries + */ + function search($needle, $mode) + { + } + /** * @return array Return the array without meta * @@ -380,6 +389,16 @@ function encode() { } + /** + * @param string|int $needle + * @param int $mode + * @return string[] + * @see bdict::search() + */ + function search($needle, $mode) + { + } + /** * @return array Return the array without meta * @see bdict::to_array()