Skip to content

Instantly share code, notes, and snippets.

@eric0324
Created June 26, 2024 03:31
Show Gist options
  • Select an option

  • Save eric0324/61754c0fc6d7128efc9d1d3ac89b8a9f to your computer and use it in GitHub Desktop.

Select an option

Save eric0324/61754c0fc6d7128efc9d1d3ac89b8a9f to your computer and use it in GitHub Desktop.

Revisions

  1. eric0324 renamed this gist Jun 26, 2024. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions php-2.md → php-2.php
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    <?php

    $x = 5;
    $y = &$x;
    $y = 3;
  2. eric0324 created this gist Jun 26, 2024.
    7 changes: 7 additions & 0 deletions php-2.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    $x = 5;
    $y = &$x;
    $y = 3;
    echo $x;
    unset($y);
    $y = 7;
    echo $x;