Home >Backend Development >PHP Tutorial >Interface writing problem
My interface looks like this. Only when there is a return, the data in json will have a value, otherwise it will be an empty string
My colleague told me that when he receives the data, he converts the data into an object using json, and if the data is empty, his entire program will explode, or my data will return null, which cannot be returned. I just don’t understand is this really the case