Skip to content

explode string into variables

Is there a way to explode a string into variables e.g some_function($min, $max, “3, 20”); such that $min is assigned the value 3 and $max is assigned the value 20. I know I can simply use $data = …

Inline PHP (command line)

I would like to make something like tryruby.org. I take a line from the user (e.g., echo __FILE__) and I want to execute it in PHP and return the output back to the client. I tried to do exec(‘php -r ‘…

CListView in Yii Framework

I have started working on yii framework and I am following the yii blog tutorial to learn basics of yii framework in this tutorial they have used a ClistView in posts view but i am getting an exception This is the code that i have used in view file: This is what my PostsController contains: I can’t find…