note 120031 deleted from function.echo by cmb
| From: | cmb@php.net | Date: | Thu, 13 Oct 2016 08:48:14 +0000 |
| Subject: | note 120031 deleted from function.echo by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-206876@lists.php.net to get a copy of this message | ||
Note Submitter: bardiademon at gmail dot com
----
<?php
$name = "PHP";
echo 1;
echo '1';
echo 'test';
//------------------------------
echo '<br/>' . "------------------------------" .
'<br/><br/>';
//------------------------------
echo "1" . '<br/>';
echo "test" . '<br/>';
echo $name;
//------------------------------
echo '<br/>' . "------------------------------" .
'<br/><br/>';
echo <<<test
1 <br/>
$name
<br/>
This is a test
test;
echo '<br/>' . "------------------------------" .
'<br/><br/>';
echo <<<'test'
1 <br/>
PHP
<br/>
This is a test
test;
//------------------------------
echo '<br/>' . "------------------------------" .
'<br/><br/>';
echo '<lable style = "color:red;"> My Name ' . $name . "!
</lable>";
echo '<br/>' . "------------------------------" .
'<br/><br/>';
echo '<lable style = "color:red;"> My Name '
. $name
. "! </lable>";
//------------------------------
echo '<br/>' . "------------------------------" .
'<br/><br/>';
function func1() {
global $name;
return $name;
}
echo func1();
//------------------------------
echo '<br/>' . "------------------------------" .
'<br/><br/>';
$array = array($name, "1", "test", 1);
echo $array[0];
echo '<br/>' . '<br/>';
function func2($index) {
global $array;
return $array[$index];
}
echo func2(0);
//------------------------------
echo '<br/>' . "------------------------------" .
'<br/><br/>';
$a = 3;
echo (string) $a;
//------------------------------
echo '<br/>' . "------------------------------" .
'<br/><br/>';
echo count($array);
echo '<br/>' . "------------------------------" .
'<br/><br/>';
echo "Number provided: " . count($array);
//------------------------------
echo '<br/>' . "------------------------------" .
'<br/><br/>';
$b = 4;
$c = 135;
echo ($b + $c) - $a;
//------------------------------
echo '<br/>' . "---" . '<br/><br/>';
echo ($b % 2 == 0) ? "Yes" : "No";
//------------------------------
echo '<br/>' . "------------------------------" .
'<br/><br/>';
?>