I'm familiar with both, but it's a little difficult to make a recommendation with so little context. Why do you want to learn one of these languages? Is there a specific reason / project or do you just want to "learn to code"?
Sorry, I did not add much detail information. I intend to learning coding to be able to do web development and then later mobile app development. Am a business guy. I don't have the intention of learning to code to get a job, but more to be able to program MVP of product ideas I have. Which one is the most easiest for a rookie Ruby or RoR or PHP or Zend or cakePHP or Yii. My goal is to get results quick, later I can then jump into the nitty gritty.
For a beginner, I'd say learn Rails. The other frameworks are nice in their own ways but Rails has the largest community by far. PHP is, as others have mentioned, just a language, and while there are good frameworks for it (CakePHP as you mentioned, CodeIgniter, Zend), the first point applies: Rails is still the hot thing right now.
PHP is probably more mature than Rails for web apps (please don't hurt me, Rubyists) but strictly for speed of setup of new products Rails is probably faster.
My answer would likely be different if you were looking to learn to program as a professional.
Comments
I'm familiar with both, but it's a little difficult to make a recommendation with so little context. Why do you want to learn one of these languages? Is there a specific reason / project or do you just want to "learn to code"?
Sorry, I did not add much detail information. I intend to learning coding to be able to do web development and then later mobile app development. Am a business guy. I don't have the intention of learning to code to get a job, but more to be able to program MVP of product ideas I have. Which one is the most easiest for a rookie Ruby or RoR or PHP or Zend or cakePHP or Yii. My goal is to get results quick, later I can then jump into the nitty gritty.
For a beginner, I'd say learn Rails. The other frameworks are nice in their own ways but Rails has the largest community by far. PHP is, as others have mentioned, just a language, and while there are good frameworks for it (CakePHP as you mentioned, CodeIgniter, Zend), the first point applies: Rails is still the hot thing right now.
PHP is probably more mature than Rails for web apps (please don't hurt me, Rubyists) but strictly for speed of setup of new products Rails is probably faster.
My answer would likely be different if you were looking to learn to program as a professional.
Do you have any programming experience, if you do, in which languages?
Yes, I coded in MySQL/SQL before. I also started learning PHP some years agao, but stopped because I was lazy.