Array Padding in PHP

by Naveenkumar 2012-08-20 09:22:33

Hi,



$scores = array(5, 10);
$padded = array_pad($scores, 5, 0); // $padded is now array(5, 10, 0, 0, 0)


855
like
0
dislike
0
mail
flag

You must LOGIN to add comments