php-general Digest 6 Mar 2011 19:16:17 - Issue 7214
Topics (messages 311710 through 311717):
$$var
311710 by: Ashim Kapoor
311712 by: Russell Dias
311713 by: Ashim Kapoor
311715 by: shiplu
311716 by: sexyprout
311717 by: Jonesy
imap_search ?
Dear All,
I was reading the php manual for session_register, and I found the following
line there : -
$_SESSION[$var] = $$var;
Why do I need $$ there ? Can someone explain?
Thank you,
Ashim
hi ! it works if there is / are emails in the box before script run (i use
cli not web based) but after it works 1 time it doesnt work again it enters
to infinite loop ,
at that line
while(!$emails) { $emails = imap_search($inbox,'ALL'); echo email yok\n;
print_r($emails); }
Hi Ashim,
These are called Variable Variables. Ideally they should be avoided,
as they introduce unnecessary legibility issues.
This is what it does in a nutshell, it's actually quite simple:
$foo = 'bar';
$bar = 'foobar';
echo $$foo;//This prints foobar
What it does is, take the value of
Hi Ashim,
These are called Variable Variables. Ideally they should be avoided,
as they introduce unnecessary legibility issues.
This is what it does in a nutshell, it's actually quite simple:
$foo = 'bar';
$bar = 'foobar';
echo $$foo;//This prints foobar
What it does is, take the
It doesn't though, it creates a copy of the $_GLOBALS super global array,
removes entries that will have been set by the system (i.e. it leaves
user-defined variables) and then returns the ones that are left, so in that,
the user note is perfectly correct.
What has me puzzled is how unsetting
Just being curious, I have a question.
How many times PHP interpreter will replace this variables? I mean how deep
it will be?
If I use variable variables like
$$a
how long it will be evaluated?
--
Shiplu
∞
2011/3/6 shiplu shiplu@gmail.com
Just being curious, I have a question.
How many times PHP interpreter will replace this variables? I mean how deep
it will be?
If I use variable variables like
On Sun, 6 Mar 2011 21:12:34 +0600, shiplu wrote:
Just being curious, I have a question.
How many times PHP interpreter will replace this variables? I mean how deep
it will be?
If I use variable variables like
At 6:42 PM +0530 3/6/11, Ashim Kapoor wrote:
Dear All,
I was reading the php manual for session_register, and I found the following
line there : -
$_SESSION[$var] = $$var;
Why do I need $$ there ? Can someone explain?
Thank you,
Ashim
Ashim:
You don't need to user session_register().
If $a = 'foo'
and $$a = nothing (i.e. no value assigned to $foo) you will get an error if
you tried to use this to do something else.
On Sun, Mar 6, 2011 at 3:21 PM, tedd tedd.sperl...@gmail.com wrote:
At 6:42 PM +0530 3/6/11, Ashim Kapoor wrote:
Dear All,
I was reading the php manual for
i'm not sure i understand your problem ?!?
php runs on the server, delivers html code and/or javascript to the browser
and only from there the jQuery will execute it's main loop and start trigger
some events such as the ready event. So the php script is always finish
when javascript start to
Also, the $(document).ready() is triggered when the DOM is ready to be
manipulated.
I dont know why you would consider alter the behavior of this event, maybe
what you want is to create yourself a custom event handler ...
On Sun, Mar 6, 2011 at 21:43, Ellis Antaya ellis.ant...@gmail.com wrote:
Unsetting doesn't leave user defined variables. Unsetting simply destroys
variables (or removes elements from an array, etc). There is nothing magic
or hidden in that script. I think the note meant exactly what it said: after
creating a local copy of the $GLOBALS array and removing super globals
Is anyone else out there in the same boat?
Actually we have found the complete opposite so there might be some
people who are in the same boat as you but certainly not all.
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
As per my experience so far, there is no such depth limit existing. The only
limit is imposed by the system resources (like script execution time etc.)
but not by PHP.
Cheers
NetEmp
On Sun, Mar 6, 2011 at 8:42 PM, shiplu shiplu@gmail.com wrote:
Just being curious, I have a question.
How
Unsetting doesn't leave user defined variables. Unsetting simply destroys
variables (or removes elements from an array, etc). There is nothing magic
or hidden in that script. I think the note meant exactly what it said: after
creating a local copy of the $GLOBALS array and removing super
17 matches
Mail list logo