function load_empty_template()
{
    global $css, $js;
    /* <?php echo $css; ?>
       <?php echo $js; ?> */
    ?>
<Template title="<?php 
    echo s2('Empty');
    ?>
" image="<?php 
    echo api_get_path(WEB_PATH) . 'home/default_platform_document/template_thumb/empty.gif';
    ?>
">
    <Description></Description>
    <Html>
        <![CDATA[
           <html>
           <head>
               <meta charset="<?php 
    echo api_get_system_encoding();
    ?>
" />
           </head>
           <body  dir="<?php 
    echo api_get_text_direction();
    ?>
">
               <p>
                   <br/>
               </p>
           </body>
           </html>
       ]]>
    </Html>
</Template>
<?php 
}
示例#2
0
<?php

// Copyright 2004-present Facebook. All Rights Reserved.
function s1()
{
    switch (5) {
        case 1:
            return 'hi';
        case 2:
        case 3:
        case 4:
        case 5:
            return 'lol';
    }
}
function s2()
{
    switch (1234) {
        case -5:
            return 'no';
        case -6:
            return 'nope';
        case -7:
        case -8:
            return 'still no';
    }
    return 'hi again!';
}
var_dump(s1(), s2());