[ create a new paste ] login | about

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

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

$person = new stdClass();
$person->name = 'bob';
$person->age = 5;

$string = "$person->name is $person->age years old.";

var_dump($string);


Output:
1
string(19) "bob is 5 years old."


Create a new paste based on this one


Comments: