PHP Classes

I want to call variable before it get defined :)

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  I want to call variable before it...  
Subject:I want to call variable before it...
Summary:I want to call variable before it get defined :)
Messages:2
Author:Mohamed Atef Mohamed Farag
Date:2011-05-23 20:26:00
Update:2011-05-25 01:14:35
 

  1. I want to call variable before it...   Reply   Report abuse  
Picture of Mohamed Atef Mohamed Farag Mohamed Atef Mohamed Farag - 2011-05-23 22:51:27
Hello,
I did searched everywhere about this with no hope

if my file like this:

$MyVar = "TEXT1";
echo $MyVar;
$MyVar = "TEXT2";

I want the output to be: TEXT2 not TEXT1
In brief I want to call the variable before it get called

Is there any way to do this??
Thanks

There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.