@ -18,8 +18,8 @@ namespace DtApp\ThinkLibrary;
/**
* 随机管理类
* Class Ints
* @mixin Ints
* Class Random
* @mixin Random
* @package DtApp\ThinkLibrary
*/
class Random
* 字符串管理类
* Class Str
* @mixin Str
class Str
@ -38,7 +38,7 @@ class Xmls
$xml = "<xml>";
foreach ($values as $key => $val) {
if (is_array($val)) {
$xml .= "<" . $key . ">" . toXml($val) . "</" . $key . ">";
$xml .= "<" . $key . ">" . $this->toXml($val) . "</" . $key . ">";
} else if (is_numeric($val)) {
$xml .= "<" . $key . ">" . $val . "</" . $key . ">";
} else {
@ -20,7 +20,7 @@ use think\Facade;
* 日期门面
* Class Preg
* Class Date
* @see \DtApp\ThinkLibrary\Date
* @package think\facade
* @mixin \DtApp\ThinkLibrary\Date
* 文件门面
* Class Files
* @see \DtApp\ThinkLibrary\Files
* @mixin \DtApp\ThinkLibrary\Files
* 数字门面
* @see \DtApp\ThinkLibrary\Ints
* @mixin \DtApp\ThinkLibrary\Ints
@ -20,7 +20,7 @@ use think\facade;
* 随机门面
* @see \DtApp\ThinkLibrary\Random
* @mixin \DtApp\ThinkLibrary\Random
* 字符串门面
* @see \DtApp\ThinkLibrary\Str
* @mixin \DtApp\ThinkLibrary\Str
* 时间门面
* Class Time
* @see \DtApp\ThinkLibrary\Time
* @mixin \DtApp\ThinkLibrary\Time
* 唯一ID门面
* Class UnIqId
* @see \DtApp\ThinkLibrary\UnIqId
* @mixin \DtApp\ThinkLibrary\UnIqId
* 网址门面
* Class Urls
* @see \DtApp\ThinkLibrary\Urls
* @mixin \DtApp\ThinkLibrary\Urls
@ -20,10 +20,11 @@ use think\Facade;
* XML门面
* Class Xmls
* @see \DtApp\ThinkLibrary\Xmls
* @mixin \DtApp\ThinkLibrary\Xmls
* @package DtApp\ThinkLibrary\facade
*
* @method \DtApp\ThinkLibrary\Xmls toXml(array $values) string 数组转换为xml
* @method \DtApp\ThinkLibrary\Xmls toArray(string $xml) string 将XML转为array