update page now
Laravel Live Japan

Voting

: max(four, five)?
(Example: nine)

The Note You're Voting On

dan AT --nospam-- cubeland DOT co DOT uk
21 years ago
dh at argosign dot de - 
it is possible to unset globals from within functions thanks to the $GLOBALS array:

<?php
$x = 10;

function test() {
    // don't need to do ' global $x; '
    unset ($GLOBALS['x']);
    echo 'x: ' . $GLOBALS['x'] . '<br />';
}

test();
echo "x: $x<br />";

// will result in
/*
x: 
x:
*/
?>

<< Back to user notes page

To Top