note 125264 added to language.types.boolean
| From: | Anonymous@php.net | Date: | Thu, 13 Aug 2020 13:08:56 +0000 |
| Subject: | note 125264 added to language.types.boolean | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-214955@lists.php.net to get a copy of this message | ||
What will be the output you think if we add echo and print both at a time..
<?php
$a = 5;
print print $a; // prints out: 51 inner 'print' prints the value of $a, then
// outer 'print' returns the boolean true about print $a
echo print $a; // prints out: 51 inner 'print' prints the value of $a, then
// outer 'echo' returns the boolean true about print $a
echo echo $a; // syntax error.. echo doesn't return
print echo $a; // syntax error.. echo doesn't return
?>
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.166.36 (proxied: 37.111.198.37)
----
Manual Page -- http://php.net/manual/en/language.types.boolean.php
Edit -- https://master.php.net/note/edit/125264
Del: integrated -- https://master.php.net/note/delete/125264/integrated
Del: useless -- https://master.php.net/note/delete/125264/useless
Del: bad code -- https://master.php.net/note/delete/125264/bad+code
Del: spam -- https://master.php.net/note/delete/125264/spam
Del: non-english -- https://master.php.net/note/delete/125264/non-english
Del: in docs -- https://master.php.net/note/delete/125264/in+docs
Del: other reasons-- https://master.php.net/note/delete/125264
Reject -- https://master.php.net/note/reject/125264
Search -- https://master.php.net/manage/user-notes.php