php 求长度(中英文适用)
$length = mb_strlen(trim($introductionOpen),'utf-8')
php 切割字符串长度(中英文适用)
$strString = mb_substr($introductionOpen, 0, 80, 'UTF-8');
php 切割字符串最后一个字符(中英文适用)
$currentCity =mb_substr($currentCity, -1, 1, 'UTF-8');
php 切割字符串除了最后一个字符,取之前的字符串(中英文适用)
$currentCity = mb_substr($currentCity, 0, -1, 'UTF-8');
php 切割数组(去掉数组最后一个)
$argumentArr = array_slice($arg_argumentArr, 0, -1);
php 切割数组(去掉数组第一个)
$fieldNames = array_slice($fieldNames,1);
php foreach(键值形式)
foreach ($movie as $key => $value)
php 设置utf-8
header("Content-Type: text/html; charset=utf-8");
php将数组拼接成以‘,’隔开的字符串 如 lastName,email,phone
$fields .= implode(' ,', $fieldNames) . ' )';