I am trying to count values of this array:
array:5 [▼
"layout/theme.liquid" => array:5 [▶]
"sections/featured-product.liquid" => array:1 [▶]
"sections/header.liquid" => array:2 [▶]
"templates/article.liquid" => array:1 [▶]
"templates/product.liquid" => array:1 [▶]
]
My goal is to count inside this array how many there are arrays? The answer is 10, but stuck on trying to write the code properly.
The array example is being shown by dd(count($jsonLdAssets));
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire