PHP 8.5.0 Alpha 4 available for testing

Voting

: min(four, four)?
(Example: nine)

The Note You're Voting On

dodothedreamer at gmail dot com
13 years ago
Note that unlike Java and C++, variables declared inside blocks such as loops or if's, will also be recognized and accessible outside of the block, so:
<?php
for($j=0; $j<3; $j++)
{
if(
$j == 1)
$a = 4;
}
echo
$a;
?>

Would print 4.

<< Back to user notes page

To Top