[转]php中数组与字符串
原文地址:http://www.mirecle.com/2011/03/16/php-array-with-string.html因为php的语法要求不严格,字符串也可以当数组使用,这样就存在一个问题:当使用非数字作为key访问字符串中的内容时,就可能会带来一些不一致的情况,如下面的代码
<div class="syntaxhighlighter"><div class="lines"><div class="line alt1">1$hello = "hello";
页:
[1]