-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
Description
Steps to reproduce
- I search for
rand
within PHP (meaning I type "PHP[tab]rand"). - DevDocs displays many functions whose name contains "r", "a", "n", and "d", from
array_rand
toReflectionClass::markLazyObjectAsInitialized
. - DevDocs does not list
rand
, which is an official PHP function and the exact match for my search. - I could not find a way to display the doc page for
rand
.
What I would expect
- The exact match should always be in the results.
- The search should prefer the functions whose name starts with rand.
- Or at least, prefer the functions whose name contains "rand" to those where the letters are split.
- As an alternative, an advanced search syntax would be useful:
^rand
"rand"
for whole matches