I have this part of a code :
…
//Get Data from Clients
if(is_array($ClientsData)){
foreach($ClientsData as $value){
//Get inside Specific client results
if(is_array($value)){
foreach($value as $values){
$GetValues = $values['NameID'];
if(isset($values[$GetValues])){
$GetValuesCount = count($values[$GetValues]);
}
//Get Statistics
for($z = 0; $z < $GetValuesCount; $z++){`
….
I’m showing you part of the code because the whole code is something like 3000 lines…
I get an error in line $GetValues = $values[‘NameID’];
Didnt had this issue in php 7.5. I know its an issue about an array and string thing but although I’ve tried to find it (from other similar questions) cant deal with it, due to my small experience in PHP.. Any idea how to solve it ?
If I try and print_r($ClientsData) I get this results:
Array
(
[0] => Array
(
[0] => Array
(
[NameID] => 41
[Name] => SAMANTHA SMITH
[DateOfBirth] => 19/12/1975
[Address] => 0
[Country] => Italy
[Skills] => Engineer
)
)
)