Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
And one more option:
$input = explode('_', 'max_rsya_new_hfequncy_platya_1priority');
array_walk($input, function($str, $i){
printf("%'-".($i*2+strlen($str))."s<br>\n", $str);
});
sandbox.onlinephpfunctions.com/code/24a9c7308f4e27...
$str = 'max_rsya_new_hfequncy_platya_1priority';
$array = explode('_', $str);
$new_str = $delimiter = '';
for ($i = 0; $i < sizeof($array); $i++) {
$new_str .= $delimiter . $array[$i] . '<br />';
$delimiter .= '--';
}
echo $new_str;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question