Wiki

Articles tagged with "null", sorted by ratingX
Displaying 1-2 of 2 result(s).

Getting nulls from database instead of empty strings

Created 5 years ago by samdarkTips2 comments – viewed 11,627 times – ( +13 ) – version 1.1
To get null from database instead of empty strings you need to set up your DB connection as follows:
tags: database, null

REST API and null values in XML

Created 28 days ago by marko60Tips0 comments – viewed 2,044 times – version 2.0
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 element is taken to represent a null value, but this may create problem with some parsers.
tags: REST, XML, null