PHP Iterables – PHP OOP
What is an Iterable in PHP? A value that can be looped through with a foreach() loop is called a “iterable.” PHP 7.1 added the iterable pseudo-type, which can be used as a data type for function arguments and function return values. Example <!DOCTYPE html> <html> <body> <?php function testIterable():iterable { return [“x”, “y”, “z”]; […]
PHP Iterables – PHP OOP Read More »