[ create a new paste ] login | about

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

PHP, pasted on Sep 26:
<?php

$string = "The Eternal Sunshine of a spotless mind";
print_r($string);
echo "\n";
var_dump($string);
echo "\n";
var_export($string);
echo "\n";

$number = pi();
print_r($number);
echo "\n";
var_dump($number);
echo "\n";
var_export($number);
echo "\n";

$array = array(1, 2, 3);
$array['key1'] = array(100, 101, 102);
$array['key2'] = 'value2';

print_r($array);
var_dump($array);
var_export($array);


Output:
The Eternal Sunshine of a spotless mind
string(39) "The Eternal Sunshine of a spotless mind"

'The Eternal Sunshine of a spotless mind'
3.1415926535898
float(3.1415926535898)

3.1415926535898
Array
(
    [0] => 1
    [1] => 2
    [2] => 3
    [key1] => Array
        (
            [0] => 100
            [1] => 101
            [2] => 102
        )

    [key2] => value2
)
array(5) {
  [0]=>
  int(1)
  [1]=>
  int(2)
  [2]=>
  int(3)
  ["key1"]=>
  array(3) {
    [0]=>
    int(100)
    [1]=>
    int(101)
    [2]=>
    int(102)
  }
  ["key2"]=>
  string(6) "value2"
}
array (
  0 => 1,
  1 => 2,
  2 => 3,
  'key1' => 
  array (
    0 => 100,
    1 => 101,
    2 => 102,
  ),
  'key2' => 'value2',
)


Create a new paste based on this one


Comments: