- var_export: documentation ( source)
- preg_split: documentation ( source)
<?php
$string = "This is my test case for an example.";
var_export(
preg_split(
"/(?=(\S+ \S+))\S+ (?:\S+$)?/",
$string,
0,
PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY
)
);