- Queries
- All Atoms
- Search
- Advanced Search
Diviner All Atoms
All Atoms
All Atoms
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Class
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Method
- Class
- Method
- Method
- Method
- Method
- Function
- Insert a value in between each pair of elements in a list.
- Function
- Function
- Function
- Function
- Unescape text that was escaped by @{function:phutil_escape_uri_path_component}. See @{function:phutil_escape_uri} for discussion.
- Function
- Escape text for inclusion as an infix URI substring. See discussion at @{function:phutil_escape_uri}. This function covers an unusual special case; @{function:phutil_escape_uri} is usually the correct function to use.
- Function
- Escape text for inclusion in a URI or a query parameter. Note that this method does NOT escape '/', because "%2F" is invalid in paths and Apache will automatically 404 the page if it's present. This will produce correct (the URIs will work) and desirable (the URIs will be readable) behavior in these cases:
- Function
- Test if a list has the natural numbers (1, 2, 3, and so on) as keys, in order.
- Function
- Return a short, human-readable description of an object's type.
- Function
- Perform a "(string)" cast without disabling standard exception behavior.
- Function
- Function
- Typecheck and cast an HTTP key-value parameter pair.
- Function
- Build a query string from a list of parameter pairs.
- Function
- Build a query string from a dictionary.
- Function
- Compare two hashes for equality.
- Function
- An improved version of `fnmatch`.
- Function
- Returns a parsable string representation of a variable.
- Function
- Attempt to censor any plaintext credentials from a string.
- Function
- Decode an INI string.
- Function
- Produce a human-readable explanation why a value can not be JSON-encoded.
- Function
- Encode a value in JSON, raising an exception if it can not be encoded.
- Function
- Decode a JSON dictionary.
- Function
- Compute the number of microseconds that have elapsed since an earlier timestamp (from `microtime(true)`).
- Function
- Convert a human-readable unit description into a numeric one. This function allows you to replace this:
- Function
- Perform an `fwrite()` which distinguishes between EAGAIN and EPIPE.
- Function
- Converts a string to a loggable one, with unprintables and newlines escaped.
- Function
- Function
- Function
- Add an element between every two elements of some array. That is, given a list `A, B, C, D`, and some element to interleave, `x`, this function returns `A, x, B, x, C, x, D`. This works like `implode()`, but does not concatenate the list into a string. In particular:
- Function
- Simplifies a common use of `array_combine()`. Specifically, this:
- Function
- Split a corpus of text into lines. This function splits on "\n", "\r\n", or a mixture of any of them.
- Function
- Merge a vector of arrays performantly. This has the same semantics as array_merge(), so these calls are equivalent:
- Function
- Returns the last key of an array.
- Function
- Returns the first key of an array.
- Function
- Returns the last element of an array. This is exactly like `end()` except that it won't warn you if you pass some non-referencable array to it -- e.g., the result of some other array operation.
- Function
- Returns the first element of an array. Exactly like reset(), but doesn't choke if you pass it some non-referenceable value like the return value of a function.
- Function
- Invokes the "new" operator with a vector of arguments. There is no way to `call_user_func_array()` on a class constructor, so you can instead use this function:
- Function
- Similar to @{function:coalesce}, but less strict: returns the first non-`empty()` argument, instead of the first argument that is strictly non-`null`. If no argument is nonempty, it returns the last argument. This is useful idiomatically for setting defaults:
- Function
- Returns the first argument which is not strictly null, or `null` if there are no such arguments. Identical to the MySQL function of the same name.
- Function
- Assert that passed data can be converted to string.
- Function
- Assert that two arrays have the exact same keys, in any order.
- Function
- Checks if all values of array are instances of the passed class. Throws `InvalidArgumentException` if it isn't true for any value.
- Function
- Selects a list of keys from an array, returning a new array with only the key-value pairs identified by the selected keys, in the specified order.
- Function
- Filter a list of arrays by removing the ones with an empty() value for some index. This function works just like @{function:mfilter}, except that it operates on a list of arrays instead of a list of objects.
- Function
- Filter a list of objects by executing a method across all the objects and filter out the ones with empty() results. this function works just like @{function:ifilter}, except that it operates on a list of objects instead of a list of arrays.
- Function
- Sort a list of arrays by the value of some index. This method is identical to @{function:msort}, but operates on a list of arrays instead of a list of objects.
- Function
- Function
- Function
- Sort a list of objects by a sort vector.
- Function
- Sort a list of objects by the return value of some method. In PHP, this is often vastly more efficient than `usort()` and similar.
- Function
- Group a list of arrays by the value of some index. This function is the same as @{function:mgroup}, except it operates on the values of array indexes rather than the return values of method calls.
- Function
- Group a list of objects by the result of some method, similar to how GROUP BY works in an SQL query. This function simplifies grouping objects by some property:
- Function
- Choose an index from a list of arrays. Short for "index pull", this function works just like @{function:mpull}, except that it operates on a list of arrays and selects an index from them instead of operating on a list of objects and calling a method on them.
- Function