Skip to content

Lazy Load. How to stop after closing tag is reached #36

@SDJeff

Description

@SDJeff

If you have a bigger file and getting elements

$catalog_structure = $reader->value('T_NEW_CATALOG.CATALOG_GROUP_SYSTEM.CATALOG_STRUCTURE')->lazy();

 $i = 0;
 foreach ($catalog_structure as $item) { 

   // iterate items <CATALOG_STRUCTURE></CATALOG_STRUCTURE>

}

How to stop reading file after all elements are iterated. It loops to the end of the file even there cannot come any more item for this child elements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions