Simple Variable Question


Posted on 16th Feb 2014 07:03 pm by admin

Hi everyone.... again,

I am really getting into php still. Learning more every day. I love it.
But I have run into a problem I cannot solve.
Did you know?Explore Trending and Topic pages for more stories like this.

From what I understand, you can only "echo $variable", if the variable is created above the "echo".
short example
$something = "1999 kawasaki";
Echo $something;
----------

How would I echo or print a variable if it is created below the area where I want to place the "echo $variable"
Short Example
Echo $something;
**all of the page content here**
$something = "1999 kawasaki";


I have searched for hours and cannot find a solution.
Thanks in advance for any help
No comments posted yet

Your Answer:

Login to answer
269 Like 7 Dislike
Previous forums Next forums
Other forums

UDP Multicast question
Hey,

Im not really in the know when it comes to network related programming and activitie

Change Age automatically
hi guys . im new to php , is it possible to change age value in mysql automatically when year change

preg_match logical error
Code: <?php
$s = file_get_contents("page.html");
preg_match('/<div cla

Bar charts using Graphical Framework.
I am using Graphical Frameworks(GFW) to create a chart Graphic . There is no problem with the data d

Are sessions secure at all?..
I haven't really gotten into yet, but I was just thinking of something weird..

Lets say you h

email CODING Problem
Email coding problem.

I need to send a section of the info to $tf and the same as a Cc to $em

media recovery
Hi,
i startup the database i got the error

SQL> startup
ORACLE instance started.

Hotlinking Picasa as the image folder of a website
Hi there PHP freaks, I would like to create a private album in Picasa to use it as the image folder

Calling variables
I want to call this to my website but it doesn't display what I want it to,

Code: <h5&

Internal class functions don't seem to get executed.
Hi. Can someone please put me out of my misery on this. I don't write much PHP and this has me baffl

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash