I'm trying to divide a string into pieces according to this order..
$string="dummy_string_takes_placehere_s_real_stringdummy_string2_takes_place";
I'd like to seperate this string into strings like those;
$string[1]="dummy_string_takes_place";
$string[2]="here_s_real_string";
$string[3]="dummy_string2_takes_place";
and structure should be flexible 'couse there could be any count of $string[2]
but $string[1] and $string[2] are static values
i'd like to push'em all into an array in this format
$string[1] // static
$string[2]
$string[3] // static
$string[4]
$string[5] // static
$string[6]
$string[7] // static
$string[8]
.
.
.
any comments wellcome 🙂