Skip to content

foreach optional argument #1148

@fadado

Description

@fadado

The documentation ignores the second usage of foreach, and only documents the full usage:

foreach EXP as $var (INIT; UPDATE; EXTRACT)

In fact the EXTRACT argument is optional, and the two following forms are equivalent:

foreach EXP as $var (INIT; UPDATE)
foreach EXP as $var (INIT; UPDATE; .)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions