Like many PHP developers who use Eclipse PDT, your first step after creating a new PHP file is probably to remove the closing ?> tag that Eclipse puts in it for you. Today I did those same three keystrokes (or more if you don't use keyboard shortcuts) to remove the damn closing PHP tag (whose absence is part of many codingstandards), and decided to never do it again manually. The solution is quite simple:
The problem: you need to turn the values of an HTML select element into a PHP array, and you don't want to do it by hand because it has a lot of entries.
The solution: regular expressions! (using Eclipse's regex search/replace).