Thanks for your help.
"Lucian Cozma" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> That should do it:
>
> $x = array(3,4,6,8);
> $y = array(10,20,40,10);
> $tmp = $x;
> rsort($tmp);
> $n = $tmp[0];
>
> $newArr = array();
> $newArr = array_fill(0, $n-1, 0);
>
That should do it:
"Max" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello all,
I have two arrays as follows:
$x = array(3,4,6,8);
$y = array(10,20,40,10);
I need these arrays could be merged with '0' in between.
Result expected :
$x = array(1,2,3,4,5,6,7,8);
$y = array(0,0
That should do it:
"Max" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello all,
I have two arrays as follows:
$x = array(3,4,6,8);
$y = array(10,20,40,10);
I need these arrays could be merged with '0' in between.
Result expected :
$x = array(1,2,3,4,5,6,7,8);
$y = array(0,0,10
3 matches
Mail list logo