Jump to content

counting same values in json


ImYourCousin

Recommended Posts

Hi guys.

I want count same string values on a JSON file. It looks like below.
 

{
"131": {
"uyeid": "170",
...
},
"71": {
"uyeid": "170",
...
},
"148": {
"kurumid": "171",
...
...


I get this content with below code
 

$icerik = file_get_contents("json.php");
$veri = json_decode($icerik, true);



I want count uyeid values in this json file.

Is that possible?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.