PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
The first one translates pretty well, but I do think you may want `a-zA-Z` instead of `A-z`. So for the first one, keep in mind that preg_* patterns must begin and end with a special character (traditionally a forward slash). The second two statements could be done with str_replace() since no patterns are being used.