ээнкапсуляция, мать её так :)

    Date: 10/06/06 (Code WTF)    Keywords: mysql, sql

    class banner_class extends mysql_class
    {
    	function test()
    	{
            ....  ....
            }
    }
    $result = new banner_class;
    $template = $result->test();
    
    
    готовый код, в функции 
    конструкции вида
    if ($_POST['foo'] == 'bar') {
    ...
    } ...
    {
    
    }
    

    Source: http://community.livejournal.com/code_wtf/54113.html

« Вот такой... || mozilla/cmd/xfe/mozilla.c »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home