替代语法是PHP程序设计中不常见到,有时却又很重要的一个概念。今天本文就以实例形式展示了这一概念的用法。
查看一下wordpress的代码,里面可以见到有些少见的php替代语法,如下所示:
<"entry-content"> <"meta-nav">→</span>', 'thebox' ) ); "page-links">' . __( 'Pages:', 'thebox' ), 'after' => '</div>' ) ); "htmlcode"><"htmlcode"><"htmlcode"><?php while (expr): ?> <li>循环内容</li> <?php endwhile; ?>其它替代语法可以类推。
希望本文所述对于大家学习PHP程序设计能有所帮助。