title: use goto inside function php
body: <p>Is there a way to define global label (something like variables) for PHP <code>goto</code>, in order to use it inside function declaration. I want to do the following:</p>
  
  <pre><code>function myFunction() {
     if (condition) {
       goto someLine;
    }
  }
  
  
  someLine:
  // ....
  
  myFunction();
  </code></pre>
  
  <p>when I use this code it says </p>
  
  <pre><code>PHP Fatal error:  'goto' to undefined label "someLine"
  </code></pre>
  
  <p>I know that it is not recommended to use <code>goto</code> statement. But I need it in my case. I know that perhaps always there are alternatives of <code>goto</code>, just in my case it would make the code a little easier and understandable</p>