Say I have a shape like this
$something = shape(
'some_key' => ...,
'another_key' => ...,
...
);
How can I iterate each field of the shape? I'm looking for something like this
foreach ($something as $key) {
...
}
Say I have a shape like this
$something = shape(
'some_key' => ...,
'another_key' => ...,
...
);
How can I iterate each field of the shape? I'm looking for something like this
foreach ($something as $key) {
...
}
Convert to a
dictfirst with the built-inHH\Shapes::toDictthen iterate: