Tuesday 24 October 2017

Notice: Undefined index: submit in sample.php on line 25

It means you are trying to access a part of an arraythat
isn't there.


If you have an array with 5 elements, you ca
get to them via:


$array[0] through
to $array[4]


But if you try
$array[76] which doesn't exist, you will get an
undefined Index error.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...