Home > Net >  How To check if data exsist in Array of Firebase with Php
How To check if data exsist in Array of Firebase with Php

Time:11-04

I have a Field in a document called Technicals that contain 3 value (3 names of technicals) I need to check if a specific technical is involved in a specific problem how can I do this with PHP

firebase table

CodePudding user response:

As shown in the Firebase documentation on querying for array membership that'd be something like this:

$containsQuery = $collectionRef->where('Technical', 'array-contains', 'your value');
  • Related