$export = db::get($data);
foreach ($export as $user) {
//
}
echo "Totol User: " . $export->count();
Hello, I have a problem. I'm pulling array() with db::get($data). Then I want to show the total number of records with a function such as $export->count().
Is there an example suitable for this structure? Can you help me?
count()in the documentation.ArrayObjectfromget()or do$export = new ArrayObject(db::get($data));and then$export->count;.