Hi
I need to print the array using echo $variable[0] instead of print_r
<?php
class lan {
function mon(){
$phone="1-800-300-5421";
return explode("-",$phone);
}//mon
function sec(){
return $this->mon();
}
}//lan
$we=new lan;
print_r($we->sec());
?>
thanks for anyone who helps