I was asked to fix few bugs, looking at the code, this is what I saw at the end, 600 lines later:

            }
                        }

        }
                }
            }
    }
        }

                                        }

Looks like vertical brainf4ck code. You can imagine how it looks the rest.

I'm not understanding why you tagged this thread bad-code. Looks perfectly fine and readable to me.

Except it is the ending of a PHP function.

I'd brace myself if I were you.

commented: The braces there look right to me. +0
commented: he he he +0
commented: lol +0

Sorry.

I was being facetious in my previous post.

commented: got it ;p +0
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.