Hmm...the chunk_split() worked but the explode didn't for some reason (I tried and tried and it didn't work...btw using latest version of PHP 🤷). However, I did get some info from another source that works great and its using regex's like I thought could be done:
if ( ereg( "([0-9]{2})([0-9]{2})([0-9]{2})", $value, $regs ) ) {
$s_year = $regs[1];
$s_month = $regs[2];
$day = $regs[3];
} else {
echo "Invalid";
}
This snippet works just fine. I am very curious to get your example working as I may use it in the very near future.