Friday, 11 December 2015

Merge arrays without array_merge function using PHP.

<?php

$a = array(2,3,4,5);
$b = array(6,7,8,9);

$count = count($a);
for($i = 0; $i<count($b); $i++)
{
    $a[$count] = $b[$i];
    $count++;
}

print_r($a);

?>

1 comment:

  1. it's a good and tremendous post .

    https://bolgameshowluckydraw.blogspot.com

    ReplyDelete