Hi to all!
I've this code
<?
function namefunc($dataproc) {
$g=substr($dataproc, 6, 2);
$m=substr($dataproc, 4, 2);
$a=substr($dataproc, 0, 4);
$txt=$g.$m.$a;
}
$dataok="1111111";
namefunc($dataok);
echo $txt;
?>
The problem is that "echo $txt" does not print nothing.
Can u tell me why?
Thanks _