Bu global değişkenler nedir?

0 Cevap

i aramak için ne bilmiyorum çünkü ben bu kod satırının adı nedir bilmiyorum .. ve im kod doğru yapıyı yaparken eğer ben bile bilmiyorum .. ben google araştırma olamaz ..: )

Neyse, burada kod ..

<?php
$hello = 1;

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

  case 2:
    BAR:
    break;

}


FOO:
echo "hello world!";

BAR:
echo "hola world!";

?>

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!"?

ben bu işe lazım ..

<?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:
?>

öneri ve cevaplar için teşekkürler .. :)

0 Cevap