FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » array_push() v/s array[$index] = and reference construct &
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
array_push() v/s array[$index] = and reference construct & [message #176701] Wed, 18 January 2012 23:50 Go to previous message
cate is currently offline  cate
Messages: 12
Registered: January 2012
Karma:
Junior Member
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.
[Message index]
 
Read Message
Read Message
Previous Topic: an active web design group?
Next Topic: Immediate Requirement for PHP Professionals with 4 to 7 yrs of exp in Hyderabad location
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 01 04:11:00 GMT 2024

Total time taken to generate the page: 0.05825 seconds