array_push() v/s array[$index] = and reference construct &
- From: cate <catebekensail@xxxxxxxxx>
- Date: Wed, 18 Jan 2012 15:50:52 -0800 (PST)
I am using a mysql IN clause and building a array of references for
call_user_func_array().
In my XP env (xp, apache, php 5.3.8) this will work:
array_push($param_array, &$include_unique[$i]);
On a linux box, apache, php 5.3.6, it does not. Says " Call-time pass-
by-reference has been deprecated"
But this is allowed...
$param_array[$i] = &$include_unique[$i];
Is there a way to use a push with a reference construct?
Thank you.
.
- Follow-Ups:
- Re: array_push() v/s array[$index] = and reference construct &
- From: "Álvaro G. Vicario"
- Re: array_push() v/s array[$index] = and reference construct &
- Prev by Date: Re: list() Struktur auslagern
- Next by Date: Re: array_push() v/s array[$index] = and reference construct &
- Previous by thread: list() Struktur auslagern
- Next by thread: Re: array_push() v/s array[$index] = and reference construct &
- Index(es):
Relevant Pages
|