<?php$num = 10120;$num1 = (array) $num;echo $num1[0];?>
The (array) is a cast operator which is used for converting values from other data types to array.
Previous Question Next Question
Your comments will be displayed only after manual approval.