<?php $pattern = '/-/'; if (rand(0,1)) { $pattern = 'foo'; } var_dump(preg_split($pattern, '', '-1', PREG_SPLIT_NO_EMPTY));
You have javascript disabled. You will not be able to edit any code.