注意:/ xxx /第33行中的数组到字符串转换

时间:2015-02-12 05:49:18

标签: php arrays implode

我根本不熟悉PHP,我收到了这个错误

  

注意:数组转换为字符串:

它指示我到第33行(下面):

/**
 * Generates a security token
 * The token isn't stored into the database and this avoids a database schema change
 * and SQL queries to store, retrieve, and purge (expired) tokens
 * If set to, will expire in TOKEN_EXPIRATION_TIMEFRAME seconds unless otherwise specified
 *
 * @param array $context information to base the token on
 * @param array $options (such as expires, timestamp, key)
 * @return string generated token
 */
function generate($context, $options = array(  )) {
        $context = implode( '/', (array)$context ); // <-- Line #33

                                                                  `

0 个答案:

没有答案