Wiki articles tagged with "null"

Showing 1-2 of 2 items.

REST API and null values in XML

Created 8 years ago by marko60, updated 8 years ago by marko60.

I have been working on a REST API using the excellent tools provided by Yii2. My problem was that I have to differentiate between empty values and null values. In other words, <elem></elem> is different from null as it represents an empty string. Also, although some use <elem/> to represent a null value it should still be interpreted as an empty string. In other cases, the absence of the eleme...

0 0
0 follower
Viewed: 20 332 times
Version: 2.0
Category: Tips
Tags: null, REST, XML

Getting nulls from database instead of empty strings

Created 13 years ago by samdark, updated 13 years ago by samdark.

To get null from database instead of empty strings you need to set up your DB connection as follows:

13 0
11 followers
Viewed: 20 658 times
Version: 1.1
Category: Tips
Tags: database, null