<?php
$post = [];
$posts[0] = [‘text’ => ‘hello’, ‘liles’ => 0];
$posts[1] = [‘text’ => ‘hello again’, ‘liles’ => 0];
//print_r($posts);
function show($post)
{
printf(‘%s (%d)’ . PHP_EOL, $post[‘text’], $post[‘liles’]);
}
show($posts[0]);
show($posts[1]);