How do i turn an string into variables and still get a good output.
$text = "showandreturn";
$disp = str_split($text, 2);
$firstnum = 3;
for($b = 0; $b<$firstnum; $b++){
$a = "$disp[$b]"; #showan
}
$b = "ENDED";
for($b = $firstnum; $b<sizeof($disp); $b++){
$c = "$disp[$b]"; #dreturn
echo = "$a$b$c";
}
my current output with this code is . andranetanurann
..
And I want beter result like showanENDEDdreturn
Thanks for your time and understanding..