How to style PHP echo output with span

前端 未结 4 589
傲寒
傲寒 2021-01-23 16:32

I\'m trying to style the output of each echo.

Ideally I\'d like to use for each echo, but I\'m not too sure how to ach

4条回答
  •  佛祖请我去吃肉
    2021-01-23 16:43

    I'd create a function that does this:

    function decorated_echo($text) {
        echo '' . $text . '';
    }
    

    This way, you don't have to repeat this everytime you want this behaviour.

提交回复
热议问题