http://qs321.pair.com?node_id=570543


in reply to How to extract the first elemnet from an integer type value ???

print substr($num, 0, 1);

See substr

--
b10m

All code is usually tested, but rarely trusted.