Just saw your post because I was looking for the same function.
In PHP it is SWITCH rather than select. Example:
switch ($i) {
case 0:
//code for case 0
break;
case 1:
//code for case 1
break;
};
Hope this helps. Search for SWITCH on php.net for more info.