Contact: aviboots(AT)netvision.net.il
39,884 questions
51,810 answers
573 users
$n = 5289; $first_digit = $n; while($first_digit >= 10) { $first_digit = $first_digit / 10; } echo $first_digit; /* run: 5.289 */