Jump to content

[SOLVED] Echo...?


TheFilmGod

Recommended Posts

Well echo is a PHP statement to output whatever you want.

I'm not sure what you mean by "just the php variable", you probably mean the short syntax:

<div><?=$variable?></div>

The previous code shows how the short tags can be used to output whatever is in them.

 

You can use echo in other situations where you are doing more complicated output:

<div>
  <?php
     foreach( $users as $user )
     {
          echo $user . '<br />';
     }
  ?>
</div>

 

For instance.

Link to comment
https://forums.phpfreaks.com/topic/38677-solved-echo/#findComment-185750
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.