- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
function getTelephoneData()
{
preg_match('/\+([\d])\(([\d]{3})\)([\d]{3})-([\d]{2})-([\d]{2})/', $this->getTelephone(), $match);
$telephone_data = array();
if($match)
$telephone_data = array('code_country' => $match[1],
'code_city' => $match[2],
'number1' => $match[3],
'number2' => $match[4],
'number3' => $match[5]
);
return $telephone_data;
}
function getFaxData()
{
preg_match('/\+([\d])\(([\d]{3})\)([\d]{3})-([\d]{2})-([\d]{2})/', $this->getFax(), $match);
$telephone_data = array();
if($match)
{
$telephone_data = array(
'code_country' => $match[1],
'code_city' => $match[2],
'number1' => $match[3],
'number2' => $match[4],
'number3' => $match[5]
);
}
return $telephone_data;
}
function getMobileTelephoneData()
{
$telephone_data = array();
preg_match('/\+([\d])\(([\d]{3})\)([\d]{3})-([\d]{2})-([\d]{2})/', $this->getMobileTelephone(), $match);
if(count($match))
$telephone_data = array('code_country' => $match[1],
'code_city' => $match[2],
'number1' => $match[3],
'number2' => $match[4],
'number3' => $match[5]
);
return $telephone_data;
}
korchasa 26.10.2011 17:40 # 0
Sulik78 26.10.2011 18:41 # 0
Byte 26.10.2011 19:18 # +1