<?php
$str = '6/3/2';
$res_str = array_chunk(explode("/",$str),2);
foreach( $res_str as &$val){
$val = implode("/",$val);
}
echo implode(".",$res_str);
//6/3.2
<?php
$str = '6/3/2';
$res_str = array_chunk(explode("/",$str),2);
foreach( $res_str as &$val){
$val = implode("/",$val);
}
echo implode(".",$res_str);
//6/3.2