PHP ManualThe Traversable interface(No version information available, might only be in SVN) IntroductionInterface to detect if a class is traversable using foreach. Abstract base interface that cannot be implemented alone. Instead it must be implemented by either IteratorAggregate or Iterator.
Interface synopsis
Traversable
{
}This interface has no methods, its only purpose is to be the base interface for all traversable classes.
![]() |
PHP-Index
New Tutorial entries
|