php Code Refactoring Series - part3

php Code Refactoring Series - part3
لطفا از else استفاده نکنید!