php: Omit closing ?> in manual and examples

PSR-12 says "The closing ?> tag MUST be omitted from files containing
only PHP".
This commit is contained in:
Olly Betts 2021-03-22 16:00:09 +13:00
commit e54d44c4be
100 changed files with 0 additions and 135 deletions

View file

@ -476,7 +476,6 @@ $result=new_intp();
add( $in1, $in2, $result );
echo "The sum " . intp_value($in1) . " + " . intp_value($in2) . " = " . intp_value( $result) . "\n";
?>
</pre></div>
<p>
@ -508,7 +507,6 @@ $in2 = 5;
$result= add($in1, $in2); # Note using variables for the input is unnecessary.
echo "The sum $in1 + $in2 = $result\n";
?&gt;
</pre></div>
<p>
@ -547,7 +545,6 @@ $result = 0;
add($in1, $in2, $result);
echo "The sum $in1 + $in2 = $result\n";
?&gt;
</pre></div>
<p>
@ -622,7 +619,6 @@ Would be used in the following way from PHP:
$c-&gt;im = 0;
# $c destructor called when $c goes out of scope.
?&gt;
</pre></div>
<p>