note 46584 rejected from function.implode by curt

From: Date: Sat, 16 Oct 2004 04:44:33 +0000
Subject: note 46584 rejected from function.implode by curt
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-78640@lists.php.net to get a copy of this message
Note Submitter: paul dot php at burney dot ws ---- If the array you are imploding is empty, implode returns {null}, not an empty string. This can be a concern if you are imploding a dynamically generated array to place in a database. If you get a null and the database field is set to NOT NULL, you get a contstraint violation. This has happened to me with prepared queries in which the system trys to figure out how to send the data to the database.

« previous php.notes (#78640) next »