2012-07-12から1日間の記事一覧
As in Perl, you can access a value from the array inside double quotes. However, with PHP you'll need to enclose your array between curly braces.Example #4 Accessing an array inside double quotes 'baz'); echo "Hello {$foo['bar']}!"; // Hel…
PHPはオブジェクト指向じゃない。と思った話。pythonとかc++とか OOPの言語に慣れた人なら、 下のようなことができて、当然と思う。 私もそうだった。 $a = array(); $a->add("nasu"); $a->add("kabocha"); // 注意 addという関数を私の勝手な想像です。$aは…
it's very frustrating when I found that CI query-result always return value in string. it doesn't return a value with origianl datatype stored in database!!!.I found a thraed talking about this.as of CI 2.0.3, query returns all in string. …