ID: 9307
Updated by: stas
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Assigned To: 

Right, this is how PHP works. That's not a bug, that's an
intended behaviour.

Previous Comments:

[2001-02-16 16:17:20] [EMAIL PROTECTED]
$myarray['105'] = 'Hello';
$myarray[(string)'106'] = 'Goodbye';

array(2) {
  string(5) "Hello"
  string(7) "Goodbye"

It shouldn't be auto-converting array keys to numbers if they're already of a 
different type! Let's say I have an whole list of items as my array keys, and one just 
happens to be "able" to be converted into a number. Suddenly one of my array keys is 
no longer a string.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to