is this global variables? PHP
<p>i dont know what is the name of this line of code.. and i don't even know if im doing the right structure of code.. i can't research to google because i don't know what to search.. :)</p>

<p>anyway, here's the code..</p>

<pre><code>&lt;?php
$hello = 1;

switch($hello)
{
  case 1:
    FOO:
    break;

  case 2:
    BAR:
    break;

}


FOO:
echo "hello world!";

BAR:
echo "hola world!";

?&gt;
</code></pre>

<p>if the value of $hello == 1, does the output will be "hello world!"?
if the value of $hello == 2, does the output will be "hola world!"?</p>

<p>i got this to work..</p>

<pre><code>&lt;?php
$hello = '1';

switch($hello)
{
  case '1':
    goto FOOO;
    break;

  case '2':
    goto BARR;
    break;

}


FOOO:
echo "hello world!";
goto LAST;

BARR:
echo "hola world!";

LAST:
?&gt;
</code></pre>

<p>thanks for the suggestions and answers.. :)</p>
