我想加个判断,不知道怎么写代码。

#1 ahqueer

$result = array(
'gid' => 12,
'name' => '小李',
'contents' => '我的留言',
'post_time' => '2009-10-26 10:04:53',
'post_ip' => '218.82.32.12',
'replay' => ''

if open == 1
{
'open1' =>'0',
}

);

我想加个判断,不知道怎么写代码。(如以上红色代码

2012-01-08 19:04:16

#2 jake

if ($open == 1)
{
$open1 = 0;
}

PHP入门教程:http://www.w3school.com.cn/php/index.asp

2012-01-08 19:12:19

#3 ahqueer

:handshake谢谢管理员解答

2012-01-08 19:15:46