note 111023 added to function.dbase-replace-record
| From: | rlundp at lunds dot us | Date: | Mon, 07 Jan 2013 22:48:43 +0000 |
| Subject: | note 111023 added to function.dbase-replace-record | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192783@lists.php.net to get a copy of this message | ||
It took me a while to figure this out, so even though this is near-obsolete, maybe it will be useful
to someone else.
I have a dBase file that contains a boolean value. I created a new row in the file with the boolean
value at 0, and that worked without issues.
But then I tried to set that value to 1, and it did not work. I tried 1, "1", true - all
without success.
Turns out that you need to use "Y" to set a boolean value to 1.
When you load the row later and output it using var_dump, the value will show as integer with the
value 1.
----
Server IP: 192.41.42.26
Probable Submitter: 75.146.182.131
----
Manual Page -- http://php.net/manual/en/function.dbase-replace-record.php
Edit -- https://master.php.net/note/edit/111023
Del: integrated -- https://master.php.net/note/delete/111023/integrated
Del: useless -- https://master.php.net/note/delete/111023/useless
Del: bad code -- https://master.php.net/note/delete/111023/bad+code
Del: spam -- https://master.php.net/note/delete/111023/spam
Del: non-english -- https://master.php.net/note/delete/111023/non-english
Del: in docs -- https://master.php.net/note/delete/111023/in+docs
Del: other reasons-- https://master.php.net/note/delete/111023
Reject -- https://master.php.net/note/reject/111023
Search -- https://master.php.net/manage/user-notes.php