<?php $x = new StdClass(); $x->{'todo-list'} = 'fred'; $key = 'todo-list'; $nokey = 'as-hsd'; print $x->$key; print $x->$nokey; var_dump($x);
You have javascript disabled. You will not be able to edit any code.