Accessing associative arrays in PHP
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']