Skip to content

Instantly share code, notes, and snippets.

@panvid
Created July 19, 2018 12:06
Show Gist options
  • Save panvid/ca5a78fb70da6d0eb1da4babbd1b3eac to your computer and use it in GitHub Desktop.
Save panvid/ca5a78fb70da6d0eb1da4babbd1b3eac to your computer and use it in GitHub Desktop.
<?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