I've got two issues while playing with a string.
1) What would be the best way to divide a string using every other character?
$source = "12345678ABCDEFGH";
// intended output:
// $outputone = "1357ACEG";
// $outputtwo = "2468BDFH";
2) What would be the best way to divide a string into segments of a particular length?
$source = "1357ACEG";
// intended output for a length of 2:
// $output[0] = "13";
// $output[1] = "57";
// $output[2] = "AC";
// $output[3] = "EG";
1) What would be the best way to divide a string using every other character?
$source = "12345678ABCDEFGH";
// intended output:
// $outputone = "1357ACEG";
// $outputtwo = "2468BDFH";
2) What would be the best way to divide a string into segments of a particular length?
$source = "1357ACEG";
// intended output for a length of 2:
// $output[0] = "13";
// $output[1] = "57";
// $output[2] = "AC";
// $output[3] = "EG";