-1

Is goto supported in PHP 5.2.8?

6
  • 5
    Have you tried using it? Typing goto is simpler than typing a question here ;)
    – Blender
    Commented May 5, 2011 at 4:51
  • m trying one simple example like <?php goto a; echo 'welcome'; a: echo 'agile'; ?> bt it gives Parse error: syntax error, unexpected T_STRING in /opt/lampp/htdocs/amol-test/goto.php on line 3
    – user596350
    Commented May 5, 2011 at 4:53
  • 1
    Why was this question closed? Asking if PHP 5.2.8 supports the goto operator is a perfectly reasonable question.
    – Asaph
    Commented May 5, 2011 at 4:55
  • 5
    @Asaph: For me it was a knee-jerk reaction to the poor quality of the question, from a poor quality user, and it's a simple reference question that could have easily been looked up. I agree that it is valid, but I didn't want to encourage the way it was asked. Read the users other questions: they're all phrased the same way. Editing and voting to reopen on technical grounds only.
    – Mog
    Commented May 5, 2011 at 5:02
  • i dont have php compiler now, and i want to know the answer as well. and the documentation is not clear.
    – Elliot Yap
    Commented Sep 13, 2011 at 4:20

1 Answer 1

12

No. The goto operator is not available in php 5.2.8. According to the goto documentation:

Note:

The goto operator is available as of PHP 5.3.

0