Sunday, March 18, 2012

给数据库中的某个表添加一个字段


1.
$installer = $this;
$installer->startSetup();
$installer->getConnection()->addColumn($this->getTable('cataloginventory_stock_item'), 'self', "VARCHAR( 255 ) NOT NULL COMMENT 'Netz98_Picklist'");
$installer->endSetup();

2. 
implode() 函数把数组元素组合为一个字符串

var_dump -- 打印变量的相关信息
var_dump ( mixed expression [, mixed expression [, ...]])

此函数显示关于一个或多个表达式的结构信息,包括表达式的类型与值。数组将递归展开值,通过缩进显示其结构。
可以比较一下 var_dump() 与print_r()函数。

2 comments:

  1. 此函数显示关于一个或多个表达式的结构信息diablo 3 buy online

    ReplyDelete
  2. At one point within activity experiencing qualifications, all you could recommended has been a new figure out that has a little knife that will sweeps sends and in reverse. In the encounter of the particular big activity experiencing globe, the particular more mature actions are ignored generally by several.We should assess Hunted: This Demon's Create, that will take players here we are at property associated with reducing as well as dicing should as well as strolling due to dim, scary dungeons loaded with different photography digital photographic camera animals.

    Buy WOW Gold  RS Gold  Buy Diablo 3 Gold

    ReplyDelete