Created
July 3, 2015 00:05
-
-
Save erikfig/f1586b7a46716a252495 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
public function getAll() | |
{ | |
$data = []; | |
foreach ($this as $k=>$v) { | |
$first = (substr($k, 0, 1)); | |
if ($first !== '_') | |
$data[$k]=$v; | |
} | |
return $data; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment