On Sat, 23 Oct 2010 16:56:52 +0200, peter.e.l...@gmail.com (Peter
Lind) wrote:
>More information (and a complete breakdown of your problem) is
>available here:
>http://schlueters.de/blog/archives/141-References-and-foreach.html
Thank you! The situation is obscure and confusing, but that
explanati
On Sat, 23 Oct 2010 08:34:27 +0200, peter.e.l...@gmail.com (Peter
Lind) wrote:
>It is not a bug - somewhere before the foreach loop you've got, a
>variable is being referenced, and that's throwing things off.
>Otherwise, unsetting the variable would have no effect on the problem
>you're seeing.
C
Gary wrote:
>Better. I can tell you how to solve it:
>$a = array('a', 'b','c');
>foreach($a as &$row){
>//you don't have to do anything here
>}
>unset($row); // <<<< THIS IS KEY!
>print_r($a);
>foreach($a as $row){
>echo "".$row;
>}
>print_r($a);
On Wed, 20 Oct 2010 08:37:55 +0200, php-gene...@garydjones.name (Gary)
wrote:
>Better. I can tell you how to solve it:
>$a = array('a', 'b','c');
>foreach($a as &$row){
>//you don't have to do anything here
>}
>unset($row); // <<<< THIS IS KEY!
>print_r($a);
>fo
I've got a script which originally contained the following piece of
code:
foreach ( $objs as $obj ) {
do_some_stuff($obj);
}
When I tested it, I found that on every iteration of the loop the last
element of $objs was assigned the value of the current element. I was
able to step through the loo
On Sat, 13 Feb 2010 20:01:35 -0500, n...@ridersite.org (Al) wrote:
>> I'm looking for a report generator which will be used to create
>> management reports for my client from a MySQL database
>>
>> Has anyone had experience with report generators that meet these
>> criteria? What would you rec
I'm looking for a report generator which will be used to create
management reports for my client from a MySQL database. The web site
is implemented in PHP.
Some characteristics that would be nice to have, roughly in order of
importance:
* It is moderately priced (a few hundred dollars at most) or
7 matches
Mail list logo