You are here: Re: Really hardcore question about PHP needed :) « PHP Programming Language « IT news, forums, messages
Re: Really hardcore question about PHP needed :)

Posted by ZeldorBlat on 04/17/07 12:52

On Apr 16, 8:16 pm, "Vince Morgan" <vin...@REMOVEoptusnet.com.au>
wrote:
> "ZeldorBlat" <zeldorb...@gmail.com> wrote in message
>
> news:1176739280.731307.163510@l77g2000hsb.googlegroups.com...
>
> > > | Where does PHP5 allow parameters by reference: in the function
> > definition,
> > > | in the function call, or in both?
>
> > > it's both isn't it...and that's been since php 3, hasn't it?
>
> > Warning: Call-time pass-by-reference has been deprecated .
> > If it's in both ;)
> > Vince
>
> No, not if you use it in both -- only if you use it when calling the
> function.
>
> Yep, that is certainly correct. And also incorrect.
> If you are silly enough to use it in both, similtaneously, you will also
> get the above warning. But to do that you would have to be, errr, me.
> I read the question like. When will a gearbox break, when it's in first
> gear, in reverse, or in both?
> Nothing wrong with the question, it's just a mild retardation that shows
> itself after bedtime :)
> Vince

My point was that you get the error not because you use it in both
places, but because you use it when calling the function. The former
includes the later.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация