|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-05-06 19:50 UTC] fa@php.net
[2009-05-08 18:36 UTC] rodrigosouzadossantos at gmail dot com
[2009-05-14 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 21:00:01 2025 UTC |
Description: ------------ I have a array that is populated with result query from a Postgres. The keys of array are the field name and the value are the field value. Like this: Array ( [app1] => app value [app2] => some value ) Reproduce code: --------------- $result[ 'app1' ] = 'app value'; $result[ 'app2' ] = 'some value'; print_r( $result ); var_dump( $result[ 'app1' ] ); Expected result: ---------------- string(9) "app value" Actual result: -------------- NULL The result of var_dump is correct when is puts a 'b' (binary) before string, like: var_dump( $result[ b'app1' ] ); Is it the expected behavior?