[ create a new paste ] login | about

Link: http://codepad.org/y3gYcUGl    [ raw code | output | fork | 1 comment ]

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

$one = $two = array();

$value = "hello";
$one[] = $two[] = $value;


var_dump($one, $two);


Output:
1
2
3
4
5
6
7
8
array(1) {
  [0]=>
  string(5) "hello"
}
array(1) {
  [0]=>
  string(5) "hello"
}


Create a new paste based on this one


Comments:
posted by fsdf on Sep 3

reply