<?php $in = "10001101"; $out = preg_split('/(?:(.)\K(?!\1|$))/', $in); print_r($out);
You have javascript disabled. You will not be able to edit any code.