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