I have a variable that returns a certain number that is correct.
Example:
$cc = "52532005536430673";
My question is: how do I check if this number is present in a JSON? As below:
{
"testadas": {
"52532005536430673|04|2023|869": {
"cc": "52532005536430673",
"dados": "\ud83c\udde7\ud83c\uddf7",
"status": "Reprovada",
"data_hora": "02-09-2018 20:45:13",
"retestada": false
}
}
}
In this case it is present in the "CC" and I always want to check if the number is present in the "CC".