array_unique()
function array_unique(array $array): array
Removes duplicate values from an array.
Parameters:
$array(array)
Returns: array
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/array/array_unique.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how array_unique is implemented in the compiler, see the internals page.