我怎样才能正确地淘汰此PHP代码? [英] How can I properly outcomment this PHP code?

查看:49
本文介绍了我怎样才能正确地淘汰此PHP代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下代码:

<?php do_action('twentytwelve_credits'); ?>

<a href="<?php echo esc_url(__('http://wordpress.org/', 'twentytwelve')); ?>" 
   title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'twentytwelve'); ?>"
><?php printf(__('Proudly powered by %s', 'twentytwelve'), 'WordPress'); ?></a>

我应该如何评价呢?

推荐答案

<?php
    echo 'This is a test'; // This is a one-line c++ style comment
    /* This is a multi line comment
       yet another line of comment */
    echo 'This is yet another test';
    echo 'One Final Test'; # This is a one-line shell-style comment
?>

这篇关于我怎样才能正确地淘汰此PHP代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆