[ create a new paste ] login | about

Link: http://codepad.org/CY8Iv5Ai    [ raw code | output | fork ]

PHP, pasted on Jan 7:
1
2
3
4
5
6
7
8
<?php

$_SESSION['flash'] = array("foo");
$flash_messages = $_SESSION['flash'];

$_SESSION['flash'] = array();

var_dump($flash_messages);


Output:
1
2
3
4
array(1) {
  [0]=>
  string(3) "foo"
}


Create a new paste based on this one


Comments: