@blockbot, thanks, you did explain it better. As is often the case the WP Codex assumes you are an experienced PHP user, whereas some of us need a little more help.
@t31os_, yes your post was useful, but, as blackbot said, for some of us the Codex page was “a little vague”. Perhaps you were a little arrogant to suggest that a link to one solution is an explicit answer to the posters problem.