Collect all keys of an array

function

{{$keys = array_keys($array)}}

Examples

Examples

{{$array = ["green", "red", "blue"]}}
{{$keys = array_keys($array)}}

{{$keys|print_r}}


Outcome:

Array ( 0, 1, 2 )