I saw a lot of spaghetti, and I just want a clear explanation of what spaghetti code, not . Just because I would rather not.
Links to PHP will help, as this is my language of choice.
The term "spaghetti code" is not at all specific to PHP - it applies to all programming languages and should seem very similar to most languages (at least the same paradigm). Perhaps you understand this, and just want to give an example in PHP.
The Wikipedia article on this topic seems pretty clear:
- , , GOTO, , "" . , , . , , . .
, -100 , PHP, , PHP.
, . .
.
, , , , , ( ) .
PHP, , . . "" , (), . , , , .
- ", - ". PHP, , 1970- , GOTO, . (: 5.3, PHP goto, )
, . if/elseif/else . HTML, JavaScript, PHP, PHP, HTML, PHP, JavaScript, HTML, , , , .
, ( , ). .
- - , return - , , .
, return , , . , , , , , .
cletus, , . .
, - goto PHP 5.3: http://us2.php.net/goto
, . , ,