Creating radio buttons through an array in php(need to hide text box)

The end result of the PHP should be nothing more than HTML, so it should be no different to what you know.
This could probably be done without js, using the css only “Checkbox Hack”.
What does the resulting html from the php look like?