Anonymous | Login | Signup for a new account | 12-17-2024 12:00 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0000586 | [Quercus] | minor | always | 12-27-05 15:58 | 12-27-05 18:03 | ||||
Reporter | creich | View Status | @0@ | ||||||
Assigned To | |||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | |||||||
Summary | 0000586: Improper handling of associative array within double quotes | ||||||||
Description |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> [^] <html xmlns="http://www.w3.org/1999/xhtml"> [^] <head></head> <body> <?php $fruits = array('red' => 'Apples','yellow' => 'Bananas','beige' => 'Cantaloupes', 'brown' => 'Dates'); echo "Array element\"1\" = $fruits[red] "; ?> </body> </html> Should output: Array element "1" = Apples Instead outputs: Array element "1" = |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Notes | |
(0000585) creich 12-27-05 15:59 |
can get around this by: echo "Array element\"1\" = ".$fruits['red']." "; |
(0000591) ferg 12-27-05 18:03 |
php/313j |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |