title: what is the difference between defining configration using yml and php? which is the best approach and why?
body: <p>I am working on symfony2 and currently creating an application with it, I can use yml or php format for configuring my application. however i am looking for the best approach to define configuration. what are the advantages of each and what are the demerits. also i would like to know which one provides much security. </p>