@ 2016-01-21T16:50:52Z <?php
$newadd = Array(
'0' => 'deutsch',
);
$cart = Array(
'0' => 'englisch',
'1' => 'italienisch',
'2' => 'russisch'
);
$poddata[] = 'deutsch';
print_r($poddata);
echo '----';
$cart[] = 13;
$cart[] = "foo";
$cart[] = obj;
print_r($cart);
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Array
(
[0] => deutsch
)
----
Fatal error: Uncaught Error: Undefined constant "obj" in /in/s7oq0:35
Stack trace:
#0 {main}
thrown in /in/s7oq0 on line 35
Process exited with code 255 . Output for 7.2.0 - 7.2.33 , 7.3.16 - 7.3.33 , 7.4.0 - 7.4.33 Array
(
[0] => deutsch
)
----
Warning: Use of undefined constant obj - assumed 'obj' (this will throw an Error in a future version of PHP) in /in/s7oq0 on line 35
Array
(
[0] => englisch
[1] => italienisch
[2] => russisch
[3] => 13
[4] => foo
[5] => obj
)
Output for 5.5.24 - 5.5.35 , 5.6.8 - 5.6.28 , 7.0.0 - 7.0.20 , 7.1.0 - 7.1.20 Array
(
[0] => deutsch
)
----
Notice: Use of undefined constant obj - assumed 'obj' in /in/s7oq0 on line 35
Array
(
[0] => englisch
[1] => italienisch
[2] => russisch
[3] => 13
[4] => foo
[5] => obj
)
preferences:dark mode live preview
133.72 ms | 402 KiB | 183 Q