[ create a new paste ] login | about

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

PHP, pasted on Aug 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

error_reporting(-1);
$classmates = array(
	1	=>	'да',
	2	=>	'нет',
	3	=>	'может быть',
	4	=>	'конечно',
	5	=>	'никогда'
);

$question = 'Выучишь ли ты PHP';
$random = array_rand($classmates);
$answer = {$classmates[$random]};
echo "В классе {$answer} человек выше анона\n";


Output:
1
2

Parse error: syntax error, unexpected '{' on line 14


Create a new paste based on this one


Comments: