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