[ create a new paste ] login | about

Link: http://codepad.org/9G3QPc72    [ raw code | output | fork | 5 comments ]

PHP, pasted on Nov 18:
1
2
3
4
5
6
7
8
<?php
	$array = array(24.0,24.1,24.2,24.3,24.4,24.5,24.6);
	
	$first = reset($array);
	$last = end($array);
	
	var_dump($first, $last);
?>


Output:
1
2
float(24)
float(24.6)


Create a new paste based on this one


Comments:
posted by lalo on Oct 9
hiii
reply
posted by dgf on Feb 1
12
reply
posted by dgf on Feb 1
gg
reply
posted by NiceLagiNi on Sep 13
Sample
reply
posted by NiceLagiNi on Sep 13
Cannot delete my comment here. Wew
reply