Ver original$foo = 'foo,bar,candy';$array = explode(',', $foo);$array[] = 'baz';$array[] = 'fruits';$array[] = 'vegetable';print_r($array);