Created
July 19, 2018 12:06
-
-
Save panvid/ca5a78fb70da6d0eb1da4babbd1b3eac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Foo { | |
public $a = 1; | |
protected $b = 3; | |
private $c = 4; | |
} | |
$foo = new Foo; | |
do { | |
echo key($foo) . ' - ' . current($foo) . PHP_EOL; | |
} while(next($foo)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment