note 128751 added to function.echo

From: Date: Thu, 20 Jul 2023 04:37:16 +0000
Subject: note 128751 added to function.echo
Groups: php.notes 
Request: Send a blank email to php-notes+get-220711@lists.php.net to get a copy of this message
Aqui estão todos os exemplos de echo executados e comentados echo "<p>Olá Mundo!", " ", "<span class='tag'>#BoraCodar</span>", "</p>"; $hello = "Olá Mundo!"; $code = "<span class='tag'>#BoraCodar</span>"; echo "<p>$hello</p>"; echo '<p>$hello</p>'; $day = "dia"; echo "<p>Falta 1 $day para o evento</p>"; echo "<p>Falta 2 {$day}s para o evento</p>"; echo "<h3>{$hello}</h3>"; echo "<h4>{$hello} {$code}</h4>"; $foo = "foo"; ?> <h4><?= "I have a " . $foo ?></h4> <?php echo <<<END This uses the "here document" syntax to output multiple lines with $foo interpolation. Note that the here document terminator must appear on a line with just a semicolon. no extra whitespace! END; /* Because echo does not behave like a function, this code below is invalid */ // $foo ? echo 'true' : echo 'false'; /* print behave like a function, so this code below is valid do */ echo "<br/>"; $foo ? print 'true' : print 'false'; echo "<br/>"; echo $foo ? "true" : "false"; ---- Server IP: 45.112.84.4 Probable Submitter: 45.91.159.168 (proxied: 45.170.231.156) ---- Manual Page -- https://php.net/manual/en/function.echo.php Edit -- https://main.php.net/note/edit/128751 Del: integrated -- https://main.php.net/note/delete/128751/integrated Del: useless -- https://main.php.net/note/delete/128751/useless Del: bad code -- https://main.php.net/note/delete/128751/bad+code Del: spam -- https://main.php.net/note/delete/128751/spam Del: non-english -- https://main.php.net/note/delete/128751/non-english Del: in docs -- https://main.php.net/note/delete/128751/in+docs Del: other reasons-- https://main.php.net/note/delete/128751 Reject -- https://main.php.net/note/reject/128751 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#220711) next »