Added PHP code for synonym search