- var_export: documentation ( source)
- preg_split: documentation ( source)
<?php
$string = "this.is.a.test.to.see.how.preg_split.can.be.used.for.this";
var_export(
preg_split(
'/\.[^.]*\K\./',
$string,
0,
PREG_SPLIT_NO_EMPTY
)
);