comma-separated string to array

php

Solution

$array = explode(',', $variable);

Problem

I'm looking for the simplest way to take a single variable such as: ``` $variable = 'left,middle,right'; ``` and write it to an `array();` split at the commas.

Original source