Skip to content
Snippets Groups Projects
Commit ce02ca4d authored by Matthieu Guffroy's avatar Matthieu Guffroy
Browse files

debug

parent 67b36aa9
No related branches found
No related tags found
No related merge requests found
......@@ -5,11 +5,10 @@ class Objet
public function fromDb($arr)
{
$att = get_object_vars($this);
print_r($att);
$attKeys = array_keys($att);
for ($i=0; $i < count($att); $i++) {
echo $att[$i] . "<br />";
$this->$att[$i] = $arr[$att[$i]];
$this->$attKeys[$i] = $arr[$attKeys[$i]];
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment