improved example.php

* added autocompletion example