在 php 标签中包含 fa 图标?
Including fa icons within php tag?
我正在尝试将超棒的字体图标包含到 php 标签中,但我是 php 的新手,我不确定如何正确执行此操作。
我有,
<?php echo $this->orderByList['orderby']; ?><i class="fa fa-arrow-circle-o-down"></i>
我想在 php 标签中包含 iclass,这可能吗?如果是,请有人给我举个例子。
谢谢:)
有很多方法..举几个例子:
echo sprintf('<i class="fa fa-arrow-circle-o-down %s"></i>', $this->orderByList['orderby'];
echo '<i class="fa fa-arrow-circle-o-down '.$this->orderByList['orderby'].'"></i>';
将 HTML 作为连接字符串输出到 PHP 中。
<?php echo $this->orderByList['orderby'] . '<i class="fa fa-arrow-circle-o-down"></i>'; ?>
我正在尝试将超棒的字体图标包含到 php 标签中,但我是 php 的新手,我不确定如何正确执行此操作。
我有,
<?php echo $this->orderByList['orderby']; ?><i class="fa fa-arrow-circle-o-down"></i>
我想在 php 标签中包含 iclass,这可能吗?如果是,请有人给我举个例子。
谢谢:)
有很多方法..举几个例子:
echo sprintf('<i class="fa fa-arrow-circle-o-down %s"></i>', $this->orderByList['orderby'];
echo '<i class="fa fa-arrow-circle-o-down '.$this->orderByList['orderby'].'"></i>';
将 HTML 作为连接字符串输出到 PHP 中。
<?php echo $this->orderByList['orderby'] . '<i class="fa fa-arrow-circle-o-down"></i>'; ?>