In PHP, if you want to use if methods, use { } this instead of end. And close params with {$} using and after closing {}, puts ; after it.