Parse error: syntax error, unexpected T_DOUBLE_ARROW PHP
Posted
by Belgin Fish
on Stack Overflow
See other posts from Stack Overflow
or by Belgin Fish
Published on 2010-04-12T14:05:35Z
Indexed on
2010/04/12
14:13 UTC
Read the original article
Hit count: 509
I'm getting a
Parse error: syntax error, unexpected T_DOUBLE_ARROW PHP on line 47, which is
'post_content' => $thisShow['content'],
Anyone got any ideas why?
protected function _saveShow($thisShow) {
$saveData = array(
'mid' => $this->_saveAsUserId,
'post_title' => $thisShow['title'],
'post_name' => slug($thisShow['title'],
'post_content' => $thisShow['content'],
'post_date' => date('Y-m-d H:i:s'),
'post_date_gmt' => date('Y-m-d H:i:s'),
'category_id' => 4,
'post_author' => 0,
'category_name' => $thisShow['category_name']
);
// $this->_database->insert('wp_posts', $saveData);
}
© Stack Overflow or respective owner