On Wed, 2008-04-02 at 12:19 +0530, Sanjay Mantoor wrote:
> Hello,
>
> I am new to PHP and PHP community.
>
> Following program outputs different values with print_r and var_dump.
>
> $array = array(null, NULL);
>
> print_r($array); prints values like below
> Array
> (
> [0] =>
> [1] =>
On Tue, Apr 1, 2008 at 11:49 PM, Sanjay Mantoor
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am new to PHP and PHP community.
>
> Following program outputs different values with print_r and var_dump.
>
> $array = array(null, NULL);
>
> print_r($array); prints values like below
> Array
> (
>
Hello,
I am new to PHP and PHP community.
Following program outputs different values with print_r and var_dump.
$array = array(null, NULL);
print_r($array); prints values like below
Array
(
[0] =>
[1] =>
)
where as var_dump($array) prints values like below
array(2) {
[0]=>
NULL
3 matches
Mail list logo