PHP goto mit Variable

Der Script:

<?php

extract( $_GET);

if( $go2 ) { goto $go2; }

a:

echo " aaa ";

 



b:

echo " bbb ";

 



f:

echo " fff ";

 

Ich bekomme so eine Fehlermeldung:

Parse error: syntax error, unexpected '$go2' (T_VARIABLE), expecting identifier (T_STRING) in goto.php on line 4

 

Neuen Kommentar schreiben

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

Suche

Neueste Kommentare