You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an example available to show how to implement an iterator for a Rust object that would work in the PHP side using foreach? Just naively implementing the Iterator interface didn't work, since PHP does not know about it. Any pointers would be appreciated.
Basically, I need this to work for my Rust object:
foreach($recordsas$key => $rec) {
...
}
The text was updated successfully, but these errors were encountered:
Is there an example available to show how to implement an iterator for a Rust object that would work in the PHP side using
foreach
? Just naively implementing the Iterator interface didn't work, since PHP does not know about it. Any pointers would be appreciated.Basically, I need this to work for my Rust object:
The text was updated successfully, but these errors were encountered: