Definition of spaghetti php?

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.

+5
source share
6 answers

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.

+9

, . .

+11

.

, , , , , ( ) .

PHP, , . . "" , (), . , , , .

+4

- ", - ". PHP, , 1970- , GOTO, . (: 5.3, PHP goto, )

, . if/elseif/else . HTML, JavaScript, PHP, PHP, HTML, PHP, JavaScript, HTML, , , , .

0

, ( , ). .

- - , return - , , .

, return , , . , , , , , .

cletus, , . .

0

, - goto PHP 5.3: http://us2.php.net/goto

, . , ,

0
source

All Articles