Please need to clear up the next issue : for a code like this:
<?php
class Render {
public static function displayDimensions($size){
return $size["length"];
}
}
$size_arr = array ("length"=>8, "width"=>4);
echo (Render::displayDimensions($size_arr));
?>
I cannot understand why php throwing in this notice:
PHP Notice: Undefined index: length in index.php on line 7
Thank you!)