If the number is always stored as 10 digits, then you could do this:
$t_ph_num = '1234567890';
$t_ph_area = substr($t_ph_num, 0, 3);
$t_ph_prefix = substr($t_ph_num, 3, 3);
$t_ph_suffix = substr($t_ph_num, 6, 4);
In this case, the substr() function takes three arguments: the first is the string to search, the second is the starting position of the sub-string to be found, and the third is the length of the sub-string. The second argument is given on a zero-based position system. The first letter is always at position 0.