I've been stuck on this for a while and am not sure of the problem.
Maybe someone here might have some good insight?
Here is the 'code':
class File extends Stackable{
private $data;
function set_data($array){
foreach($array as $row => $data)
foreach($data as $col => $val)
$this->data[$row][$col]=$val;
echo $this->data[$row][$col];
}
}
In which it states that on the echo there is an Undefined index : $col, where $col is generally a letter.
$row can be assumed to be set.
Maybe I'm not providing enough details, and its possible that there may be other dependencies, if so please let me know.
One thing of note is the use of php pthreads here, though i don't believe it is the cause, since the error still happens with 1 thread.
Thank you in advance for any help.
var_dump($array);right in the beginning of the function?$this->data=$arrayin a very strange fashiondatawith same keys and values. So I can't understand why do so, if you can just assign array directly