Re: regarding print_r()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wow...didn't know about textarea & var_export(). Really awesome.

thanks
Sachin Raut


On Wed, Nov 13, 2013 at 4:30 AM, Tamara Temple <tamouse.lists@xxxxxxxxx>wrote:

> + for var_export()!
> + for textarea!
>
>
> On Nov 12, 2013, at 1:17 PM, Shawn McKenzie <shawn@xxxxxxxxxxxxx> wrote:
>
> > FWIW, I use var_export() since it is valid PHP code and can be
> copy/pasted
> > etc.
> >
> >
> > On Sat, Nov 9, 2013 at 11:09 PM, Sachin Raut <imsachinraut@xxxxxxxxx>
> wrote:
> >
> >> Hello,
> >>
> >>
> >> I am trying to print following array using print_r(), but it appends
> number
> >> "1" to the output. Can someone pls tell me what is the issue here or is
> >> there any setting i need to do in PHP.
> >>
> >>
> >> Thanks
> >>
> >> Sachin Raut
> >>
> >>
> >> <?php
> >>
> >> $a[]="Paris";
> >>
> >> $a[]="London";
> >>
> >> echo print_r($a);
> >>
> >> ?>
> >>
> >>
> >> Output :
> >>
> >> Array ( [0] => Paris [1] => London ) 1
> >>
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux