Maybe This is dead-simple stupid question, but how PHP translate our code ?
Posted
by justjoe
on Stack Overflow
See other posts from Stack Overflow
or by justjoe
Published on 2010-03-23T02:56:00Z
Indexed on
2010/03/23
3:01 UTC
Read the original article
Hit count: 170
php
i got this code
`
//
// prints out "Hello World!"
//
hello_world(); //First call
function hello_world()
{
echo "Hello World!<br/>\n";
}
hello_world(); //second call
?>`
Both of 'hello_world' call will print out the same result. It's easily to understand why the second call will be output 'Hello world', but how the first call output the same where it's been call before the initiation of the function hello_world itself ?enter code here
© Stack Overflow or respective owner