<?php $string = 'This is a string!'; $i = 0; var_dump(array_filter(str_split($string), function($val) use ($i) { return ++$i % 2; }));
You have javascript disabled. You will not be able to edit any code.