I want to access the index \'memo\' in the associative array in PHP below
$variables[\"thelistitems\"];
print_r($variables[\"thelistitems\"]);
What you essentially have is an array of associative arrays. So to access the first memo, it's
$variables["thelistitems"][0]["memo"]
To access each memo, you'd do something like this
foreach($variables["thelistitems"] as $listitem) {
$memo = $listitem["memo"];
}
Do you want this ?
$variables["thelistitems"][0]['memo']