on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(0)
unsetting first element....
int(1)
after loop:
int(1)
after reset:
int(1)
after end:
int(1)
trying to trigger "Undefined index: " error: with NULL key
Warning: Undefined array key "" in /in/c4f8k on line 35
trying to trigger "Undefined index: " error: with empty string key
Warning: Undefined array key "" in /in/c4f8k on line 38
on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(0)
unsetting first element....
int(1)
after loop:
int(1)
after reset:
int(1)
after end:
int(1)
trying to trigger "Undefined index: " error: with NULL key
Notice: Undefined index: in /in/c4f8k on line 35
trying to trigger "Undefined index: " error: with empty string key
Notice: Undefined index: in /in/c4f8k on line 38
Output for 7.3.32 - 7.3.33
on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(0)
unsetting first element....
int(1)
after loop:
int(1)
after reset:
int(1)
after end:
int(1)
trying to trigger "Undefined index: " error: with NULL key
trying to trigger "Undefined index: " error: with empty string key
on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(1)
unsetting first element....
int(1)
after loop:
int(1)
after reset:
int(1)
after end:
int(1)
trying to trigger "Undefined index: " error: with NULL key
Notice: Undefined index: in /in/c4f8k on line 35
trying to trigger "Undefined index: " error: with empty string key
Notice: Undefined index: in /in/c4f8k on line 38
Output for 4.4.1, 5.2.4 - 5.2.17
on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(1)
unsetting first element....
int(1)
after loop:
int(1)
after reset:
int(1)
after end:
int(1)
trying to trigger "Undefined index: " error: with NULL key
Notice: Undefined index: in /in/c4f8k on line 35
trying to trigger "Undefined index: " error: with empty string key
Notice: Undefined index: in /in/c4f8k on line 38
on empty array:
NULL
size one array:
int(0)
size two array:
int(0)
within loop:
int(0)
unsetting first element....
int(1)
after loop:
int(1)
after reset:
int(1)
after end:
int(1)
trying to trigger "Undefined index: " error: with NULL key
Notice: Undefined index: in /in/c4f8k on line 35
trying to trigger "Undefined index: " error: with empty string key
Notice: Undefined index: in /in/c4f8k on line 38
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 3
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 3
PHP_EOL on empty array: PHP_EOLNULL
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 7
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 7
PHP_EOL size one array: PHP_EOLint(0)
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 11
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 11
PHP_EOL size two array: PHP_EOLint(0)
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 14
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 14
PHP_EOL within loop: PHP_EOLint(0)
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 18
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 18
PHP_EOL unsetting first element.... PHP_EOLint(1)
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 23
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 23
PHP_EOL after loop: PHP_EOLint(1)
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 27
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 27
PHP_EOL after reset: PHP_EOLint(1)
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 31
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 31
PHP_EOL after end: PHP_EOLint(1)
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 34
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 34
PHP_EOL trying to trigger "Undefined index: " error: with NULL keyPHP_EOL
Notice: Undefined index: in /in/c4f8k on line 35
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 37
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/c4f8k on line 37
PHP_EOL trying to trigger "Undefined index: " error: with empty string keyPHP_EOL
Notice: Undefined index: in /in/c4f8k on line 38