PHP关联字符串资源的二维数组

时间:2014-05-21 06:29:20

标签: php associative-array

以下是我的代码:

<?php 

$text_res = array(
     'eng' => array('chapter' => 'Chapter'),
     'rus' => array('chapter' => 'Глава')
     );

echo $text_res['eng']['chapter'];

?>

为什么打印空字符串?

1 个答案:

答案 0 :(得分:0)

此特定代码有效。问题不太正确。见评论

相关问题