简体   繁体   中英

How do I show data in php without using echo or print

I would like to know if there's another way to do show data in client side, like laravel does using templates, by example;

In laravel we must to do it like this:

<?php

the result of  {{ $a }} + {{ $b }} is equals to {{ $c }}

?>

how could I do that but without using a framework?

ps: I can use echo, print, var_dump, etc. but I don't want to, I wish there's a different way, something more elegant.

除了回显和打印,您可以尝试在PHP中使用var_dump()刷新所有变量

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM