what output do you get here?


Top Questions

www.w3answers.com
w3answers.blogspot.com

<?php
$array
=array(5,5,5);
echo
$r=array_pad($array,5,2);
?>

Ans:Array

NOTE:

use 'foreach($r as $v)' then try to output value 'echo $v' or use Print_r($r)

so if we make above script as

<?php
$array
=array(5,5,5);
$r=array_pad($array,5,2);

foreach(
$r as $v)
echo
$v;
?>

We get the output as 55522

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
16 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Check It !

Tweet It

W3 Updates

Stay informed on our latest news!

Syndicate content