I am trying to set up a rule that consists of two actions. The first action is to create a variable based on a view. The second action is to evaluate a custom snippet of php. I have the first part set up fine, however the second part is what I am having trouble with.

In my custom php snippet, I am trying to use the variable created from the view and use it in an array. Something like:

$variable1 = array($variable_created_from_the_view);

The view I have setup (and thus the variable created from the view) is just a list of user ids that are separated by commas. For some reason it doesn't seem to properly replace the $variable_created_from_the_view variable with a list of comma separated user ids.

Any help that you could provide would be greatly appreciated.

Thanks!