php怎么自动php强制转换字符串URL中非正常字符

php过滤文本字符串中的url链接地址
时间: 10:17
来源:未知 | 作者:我爱学习网
| 本文已影响
php过滤文本字符串中的url链接地址
=&我爱学习网的网址&;
=&支付宝的网址是你记住了吗&;//https支持,大写支持
=&百度新闻,过滤url链接&;
function removeLinks($str){
if(empty($str))return
'';
=preg_replace('/(http)(.)*([a-z0-9\-\.\_])+/i','',$str);
=preg_replace('/(www)(.)*([a-z0-9\-\.\_])+/i','',$str);
echo removeLinks($str).'';
echo removeLinks($str1).'';
echo removeLinks($str2).'';
(责任编辑:我爱学习网)
我爱学习网精心筛选编辑,将最精华的学习资料奉献给大家!
记忆力学习
教你如何高效背单词
脑龄测试题,测测你的脑龄是多少
IQ智商大挑战(FLASH)
PHP中有很多功能类似的函数,却有着细微的差别,正如本篇文章所有分析的 is_null,empty,isset 三个函数,...
php拆分字符串,支持拆分中文字符串...&&&&&&&&&php rawurldecode()解码被编码的URL字符串
php rawurldecode()解码被编码的URL字符串
rawurldecode()函数用于解码被编码的URL字符串,本文章大家介绍php rawurldecode函数的使用方法和实例,需要的朋友可以参考一下本文章。
比如有这样一个链接:
/index.php?a=my name
我们将上面的链接复制到浏览器上打开,可以看到URL中的空格被浏览器转换为%20了,链接URL变为下面的链接:
/index.php?a=my%20name
那么我们如何将链接还原为之前的呢?
这个时候我们就需要使用php rawurldecode()解码函数。
rawurldecode()对已编码的 URL 字符串进行解码,该函数返回字符串,此字符串中百分号(%)后跟两位十六进制数的序列都将被替换成原义字符。
请看下面rawurldecode()实例
echo rawurldecode('/index.php?a=my%20name');
原文地址:
php知识点必读php提取URL中的域名部分 - 为程序员服务
php提取URL中的域名部分
今天写小东西,有个需求,提取整个URL的域名部分,以前写EasyXSS时用过,一个什么函数来着,懒得翻源码,随即google了一下,果然, 找到的都是查找关键字、截断字符串之类的做法。。。用得着那么麻烦么。。所以在此记录一下。&?php
//Wdot http://wdot.cc
print_r(parse_url('http://wdot.cc/Attack/90.html'));
?&运行结果:Array
[scheme] =& http
[host] =& wdot.cc
[path] =& /Attack/90.html
)函数说明:parse_url(PHP 4, PHP 5)parse_url — Parse a URL and return its componentsDescription parse_url ( string $url [, int $component = -1 ] )This function parses a URL and returns an associative array containing any of the various components of the URL that are present.This function is not meant to validate the given URL, it only breaks it up into the above listed parts. Partial URLs are also accepted, parse_url() tries its best to parse them correctly.ParametersurlThe URL to parse. Invalid characters are replaced by _.componentSpecify one of PHP_URL_SCHEME, PHP_URL_HOST, PHP_URL_PORT, PHP_URL_USER, PHP_URL_PASS, PHP_URL_PATH, PHP_URL_QUERY or PHP_URL_FRAGMENT to retrieve just a specific URL component as a
(except when PHP_URL_PORT is given, in which case the return value will be an ).Return ValuesOn seriously malformed URLs, parse_url() may return FALSE.If the component parameter is omitted, an associative
is returned. At least one element will be present within the array. Potential keys within this array are:
scheme - e.g. http
query - after the question mark ?
fragment - after the hashmark #
If the component parameter is specified, parse_url() returns a
(or an , in the case of PHP_URL_PORT) instead of an . If the requested component doesn't exist within the given URL, NULL will be returned.
原文地址:, 感谢原作者分享。
您可能感兴趣的代码PHP自动添加http://头 转换网址为链接
来源:易贤网&& 阅读:1454 次&&日期: 14:41:31
温馨提示:易贤网小编为您整理了“PHP自动添加http://头 转换网址为链接”,方便广大网友查阅!
有时候,当我们需要用户输入网址的时候,一般我们会让用户省略掉"http://",当提交完成后用代码自动再加上http://,若有需要,我们还可将网址转换成链接的形式,类似于众多网页编辑器里的功能,以下代码将实现这类功能。先来看自动添加"http://"头的代码:
自动添加"http://"头的PHP函数代码:
2if (!preg_match("/^(http|ftp):/", $_POST['url'])){
3 $_POST['url'] = 'http://'.$_POST['url'];
PHP将网址字符串转换成超级链接,可将URL和E-mail 地址字符串转换为可点击的超级链接:
02function makeClickableLinks($text) {
03 $text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_+.~#?&//=]+)',
04 '1', $text);
05 $text = eregi_replace('([[:space:]()[{}])(,
06 '12', $text);
07 $text = eregi_replace('([_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,3})',
08 '1', $text);
09return $
将这两段代码结合起来,可形成以下用法:
view sourceprint?1
2$_POST['url']="";
3if (!preg_match("/^(http|ftp):/", $_POST['url'])) {
4 $url = 'http://'.$_POST['url'];
6echo makeClickableLinks($url);
最终效果是把加上了http://,并实现链接的形式。
更多信息请查看
更多信息请查看
【】&&&&&【点此处查询各地各类考试咨询QQ号码及交流群】
易贤网手机网站地址:
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!
相关阅读 & & &
&&& &nbsp&nbsp&nbsp会员注册
本站不参与评论!()
自觉遵守:爱国、守法、自律、真实、文明的原则
尊重网上道德,遵守中华人民共和国各项有关法律法规
严禁发表危害国家安全,破坏民族团结、国家宗教政策和社会稳定,含侮辱、诽谤、教唆、淫秽等内容的评论
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
您在本站发表的评论,本站有权保留、转载、引用或者删除
参与本评论即表明您已经阅读并接受上述条款Keyboard Shortcuts?
Next menu item
Previous menu item
Previous man page
Next man page
Scroll to bottom
Scroll to top
Goto homepage
Goto search(current page)
Focus search box
Change language:
Brazilian Portuguese
Chinese (Simplified)
类型转换的判别
PHP 在变量定义中不需要(或不支持)明确的类型定义;变量类型是根据使用该变量的上下文所决定的。也就是说,如果把一个
值赋给变量
$var,$var
就成了一个 。如果又把一个 赋给
$var,那它就成了一个。
PHP 的自动类型转换的一个例子是乘法运算符“*”。如果任何一个操作数是,则所有的操作数都被当成,结果也是。否则操作数会被解释为,结果也是。注意这并没有改变这些操作数本身的类型;改变的仅是这些操作数如何被求值以及表达式本身的类型。
如果上面两个例子看上去古怪的话,参见。
如果要强制将一个变量当作某种类型来求值,参见一节。如果要改变一个变量的类型,参见 。
如果想要测试本节中任何例子的话,可以用
自动转换为 数组 的行为目前没有定义。
此外,由于 PHP 支持使用和数组下标同样的语法访问字符串下标,以下例子在所有 PHP 版本中都有效:
请参阅一节以获取更多信息。
类型强制转换
PHP 中的类型强制转换和 C 中的非常像:在要转换的变量之前加上用括号括起来的目标类型。
允许的强制转换有:
(int), (integer) - 转换为整形
(bool), (boolean) - 转换为布尔类型
(float), (double), (real) - 转换为浮点型
(string) - 转换为字符串
(array) - 转换为数组
(object) - 转换为对象
(unset) - 转换为
(binary) 转换和 b 前缀转换支持为 PHP 5.2.1 新增。
注意在括号内允许有空格和制表符,所以下面两个例子功能相同:
将字符串文字和变量转换为二进制字符串:
&?php$binary&=&(binary)$string;$binary&=&b"binary&string";?&
可以将变量放置在双引号中的方式来代替将变量转换成字符串:
有时在类型之间强制转换时确切地会发生什么可能不是很明显。更多信息见如下小节:
Uneven division of an integer variable by another integer variable will result in a float by automatic conversion -- you do not have to cast the variables to floats in order to avoid integer truncation (as you would in C, for example):$dividend = 2;$divisor = 3;$quotient = $dividend/$print $ // 0.67
incremental operator ("++") doesn't make type conversion from boolean to int, and if an variable is boolean and equals TRUE than after ++ operation it remains as TRUE, so:$a = TRUE; echo ($a++).$a;& // prints "11"
Casting objects to arrays is a pain. Example:&?phpclass MyClass {& & private $priv = 'priv_value';& & protected $prot = 'prot_value';& & public $pub = 'pub_value';& & public $MyClasspriv = 'second_pub_value';}$test = new MyClass();echo '&pre&';print_r((array) $test);?&Yes, that looks like an array with two keys with the same name and it looks like the protected field was prepended with an asterisk. But that's not true:&?phpforeach ((array) $test as $key =& $value) {& & $len = strlen($key);& & echo "{$key} ({$len}) =& {$value}&br /&";& & for ($i = 0; $i & $len; ++$i) {& & & & echo ord($key[$i]) . ' ';& & }& & echo '&hr /&';}?&The char codes show that the protected keys are prepended with '\0*\0' and private keys are prepended with '\0'.__CLASS__.'\0' so be careful when playing around with this.
Printing or echoing a FALSE boolean value or a NULL value results in an empty string:(string)TRUE //returns "1"(string)FALSE //returns ""echo TRUE; //prints "1"echo FALSE; //prints nothing!
(array) nullarray(null)are not the same.var_dump((array) null) =& array (size=0)& emptyvar_dump(array (null)) =& array (size=1)& 0 =& null
You REALLY must be aware what you are doing, when you cast a lot& in your code. For example, you can accidentaly change FALSE to TRUE& (probably not in one line, like here):if(TRUE === (boolean) (array) (int) FALSE) {& & kaboom();}
There are some shorter and faster (at least on my machine) ways to perform a type cast.&?php$string='';$float=+$string; $integer=0|$string;$boolean=!!$string;?&
Checking for strings to be integers?How about if a string is a float?&?php$isInt=preg_match('/^\s*([0-9]+)\s*$/', $myString, $myInt);echo 'Is Integer? ',& ($isInt) ? 'Yes: '.$myInt[1] : 'No', "\n";$isInt=preg_match('/^[0-9]+$/', $myString);echo 'Is Integer? ',& ($isInt) ? 'Yes' : 'No', "\n";$isFloat=preg_match('/^\s*([0-9]+(\.[0-9]+)?)\s*$/', $myString, $myNum);echo 'Is Number? ',& ($isFloat) ? 'Yes: '.$myNum[1] : 'No', "\n";$isInt=preg_match('/^[0-9]+(\.[0-9]+)?$/', $myString);echo 'Is Number? ',& ($isFloat) ? 'Yes' : 'No', "\n";?&
namaroulis stated "I found it tricky to check if a posted value was an integer"; to test if a variable is a number or a numeric string (such as form input, which is always a string), you must use is_numeric():&?php$_POST['a'] = "42";is_numeric( $_POST['a'] ); ?&
If you want to convert a string automatically to float or integer (e.g. "0.234" to float and "123" to int), simply add 0 to the string - PHP will do the rest.e.g.$val = 0 + "1.234";(type of $val is float now)$val = 0 + "123";(type of $val is integer now)
Type casting from string to int and vice versa is probably the most common conversation. PHP does this very simply through the +. and .= operators, removing any explicit casting:&?php$x = 1;var_dump($x); $x .= 1;var_dump($x); $x = "1";var_dump($x);& $x += 1;var_dump($x); ?&
in response to bhsmither It raises a warning because of the bad enquoted variable&?phperror_reporting( E_ALL | E_STRICT );$foo['ten'] = 10;& & & & $str = "{$foo['ten']}";& $str = "$foo[ten]";& & &
The object casting methods presented here do not take into account the class hierarchy of the class you're trying to cast your object into./**& && * Convert an object to a specific class.& && * @param object $object& && * @param string $class_name The class to cast the object to& && * @return object& && */& & public static function cast($object, $class_name) {& & & & if($object === false)& & & & if(class_exists($class_name)) {& & & & & & $ser_object& && = serialize($object);& & & & & & $obj_name_len& && = strlen(get_class($object));& & & & & & $start& & & & & && = $obj_name_len + strlen($obj_name_len) + 6;& & & & & & $new_object& & & = 'O:' . strlen($class_name) . ':"' . $class_name . '":';& & & & & & $new_object& && .= substr($ser_object, $start);& & & & & & $new_object& && = unserialize($new_object);& & & & & & /**& & & & & && * The new object is of the correct type but& & & & & && * is not fully initialized throughout its graph.& & & & & && * To get the full object graph (including parent& & & & & && * class data, we need to create a new instance of & & & & & && * the specified class and then assign the new & & & & & && * properties to it.& & & & & && */& & & & & & $graph = new $class_& & & & & & foreach($new_object as $prop =& $val) {& & & & & & & & $graph-&$prop = $& & & & & & }& & & & & & return $& & & & } else {& & & & & & throw new CoreException(false, "could not find class $class_name for casting in DB::cast");& & & & & && & & & }& & }
If you want to do not only typecasting between basic data types but between classes, try this function. It converts any class into another. All variables that equal name in both classes will be copied.function typecast($old_object, $new_classname) {& if(class_exists($new_classname)) {& & $old_serialized_object = serialize($old_object);& & $new_serialized_object = 'O:' . strlen($new_classname) . ':"' . $new_classname . '":' . & & & & & & & & & & & & & && substr($old_serialized_object, $old_serialized_object[2] + 7);& & return unserialize($new_serialized_object);& }& else& &}Example:class A {& var $& function A($secret) {$this-&secret = $}& function output() {echo("Secret class A: " . $this-&secret);}}class B extends A {& var $& function output() {echo("Secret class B: " . strrev($this-&secret));}}$a = new A("Paranoia");$b = typecast($a, "B");$a-&output();$b-&output();echo("Classname \$a: " . get_class($a) . "Classname \$b: " . get_class($b));Output of the example code above:Secret class A: ParanoiaSecret class B: aionaraPClassname $a: aClassname $b: b
I found it tricky to check if a posted value was an integer.&?php$_POST['a'] = "42";is_int( $_POST['a'] ); is_int( intval( "anything" ) ); ?&A method I use for checking if a string represents an integer value.&?phpfunction check_int( $str )& & & & & & & & {& & & & & & & & & & return& is_numeric( $str ) && intval( $str ) - $str == 0;& & & & & & & & }?&
For a Cast to a User Defined Object you can define a cast method:class MyObject {& & /**& && * @param MyObject $object& && * @return MyObject& && */& & static public function cast(MyObject $object) {& & & & return $& & }}In your php page code you can:$myObject = MyObject::cast($_SESSION["myObject"]);Then, PHP will validate the value and your IDE will help you.
WHERE'S THE BEEF?Looks like type-casting user-defined objects is a real pain, and ya gotta be nuttin' less than a brain jus ta cypher-it. But since PHP supports OOP, you can add the capabilities right now. Start with any simple class.&?phpclass Point {& protected $x, $y;& public function __construct($xVal = 0, $yVal = 0) {& & $this-&x = $xVal;& & $this-&y = $yVal;& }& public function getX() { return $this-&x; }& public function getY() { return $this-&y; }}$p = new Point(25, 35);echo $p-&getX();& & & echo $p-&getY();& & & ?&Ok, now we need extra powers. PHP gives us several options:& A. We can tag on extra properties on-the-fly using everyday PHP syntax...& & $p-&z = 45; // here, $p is still an object of type [Point] but gains no capability, and it's on a per-instance basis, blah.& B. We can try type-casting it to a different type to access more functions...& & $p = (SuperDuperPoint) $p; // if this is even allowed, I doubt it. But even if PHP lets this slide, the small amount of data Point holds would probably not be enough for the extra functions to work anyway. And we still need the class def + all extra data. We should have just instantiated a [SuperDuperPoint] object to begin with... and just like above, this only works on a per-instance basis.& C. Do it the right way using OOP - and just extend the Point class already.&?phpclass Point3D extends Point {& protected $z;& & & & & & & & & & & & & & & & public function __construct($xVal = 0, $yVal = 0, $zVal = 0) {& & parent::__construct($xVal, $yVal);& & $this-&z = $zVal;& }& public function getZ() { return $this-&z; }& }$p3d = new Point3D(25, 35, 45);& echo $p3d-&getX();& & & & & & && echo $p3d-&getY();& & & & & & && echo $p3d-&getZ();& & & & & & && ?&Once the new class definition is written, you can make as many Point3D objects as you want. Each of them will have more data and functions already built-in. This is much better than trying to beef-up any "single lesser object" on-the-fly, and it's way easier to do.
It seems (unset) is pretty useless. But for people who like to make their code really compact (and probably unreadable). You can use it to use an variable and unset it on the same line:Without cast: &?php$hello = 'Hello world';print $hello;unset($hello);?&With the unset cast: &?php$hello = 'Hello world';$hello = (unset) print $hello;?&Hoorah, we lost another line!
function strhex($string){&& $hex="";&& for ($i=0;$i&strlen($string);$i++)& & && $hex.=dechex(ord($string[$i]));&& return $}function hexstr($hex){&& $string="";&& for ($i=0;$i&strlen($hex)-1;$i+=2)& & && $string.=chr(hexdec($hex[$i].$hex[$i+1]));&& return $}to convert hex to str and vice versa
Re: the typecasting between classes post below... fantastic, but slightly flawed. Any class name longer than 9 characters becomes a problem... SO here's a simple fix:function typecast($old_object, $new_classname) {& if(class_exists($new_classname)) {& & // Example serialized object segment& & // O:5:"field":9:{s:5:...&& &--- Class: Field& & $old_serialized_prefix& = "O:".strlen(get_class($old_object));& & $old_serialized_prefix .= ":\"".get_class($old_object)."\":";& & $old_serialized_object = serialize($old_object);& & $new_serialized_object = 'O:'.strlen($new_classname).':"'.$new_classname . '":';& & $new_serialized_object .= substr($old_serialized_object,strlen($old_serialized_prefix));&& return unserialize($new_serialized_object);& }& else&&}Thanks for the previous code. Set me in the right direction to solving my typecasting problem. ;)
If you have a boolean, performing increments on it won't do anything despite it being 1.& This is a case where you have to use a cast.&html&&body& &!-- don't want w3.org to get mad... --&&?php$bar = TRUE;?&I have &?=$bar?& bar.&?php$bar++;?&I now have &?=$bar?& bar.&?php$bar = (int) $bar;$bar++;?&I finally have &?=$bar?& bar.&/body&&/html&That will printI have 1 bar.I now have 1 bar.I finally have 2 bar.
The code listed in some of the comments here for supposedly "casting" from one class to another using unserialize/serialize does not actually change the class of it creates a new object. So it's not the same as a cast.
@alexgr (20-Jun-2008)Correct me if I'm wrong, but that is not a cast, it might be useful sometimes, but the IDE will not reflect what's really happening:&?phpclass MyObject {& & static public function cast(MyObject $object) {& & & & return $object;& & }& & function f() {}}class X extends MyObject {& & function f() { throw new exception(); }}$x = MyObject::cast(new X);$x-&f(); ?&However, when you run the script, you will get an exception.
In my much of my coding I have found it necessary to type-cast between objects of different class types.More specifically, I often want to take information from a database, convert it into the class it was before it was inserted, then have the ability to call its class functions as well.The following code is much shorter than some of the previous examples and seems to suit my purposes.& It also makes use of some regular expression matching rather than string position, replacing, etc.& It takes an object ($obj) of any type and casts it to an new type ($class_type).& Note that the new class type must exist:function ClassTypeCast(&$obj,$class_type){& & if(class_exists($class_type,true)){& & & & $obj = unserialize(preg_replace"/^O:[0-9]+:\"[^\"]+\":/i", & & & & & "O:".strlen($class_type).":\"".$class_type."\":", serialize($obj)));& & }}
It would be useful to know the precedence (for lack of a better word) for type juggling.& This entry currently explains that "if either operand is a float, then both operands are evaluated as floats, and the result will be a float" but could (and I think should) provide a hierarchy that indicates, for instance, "between an int and a boolean, between a float and an int, between a string and a float, string wins" and so on (and don't count on my example accurately capturing the true hierarchy, as I haven't actually done the tests to figure it out).& Thanks!
Type Juggling&br/&&& &?php $count = "2 cats"; ?&&& Type: &?php echo gettype($count); ?&&br/&&& &?php $count += 3; ?&&& Type: &?php echo gettype($count); ?&&br/& && &?php $cats = "I have " . $count . "cats."; ?&&& Cats: &?php echo gettype($cats); ?&&br/&&& &br/&&& Type Casting&br/&&& &?php settype($count, "integer"); ?&&& count: &?php echo gettype($count); ?&&br/&&& &?php $count2 = (string)$count; ?&&& count: &?php echo gettype($count); ?&&br/&&& count2: &?php echo gettype($count2); ?&&br/&&& &?php $test1 = 3; ?&&& &?php $test2 = 3; ?&&& &?php settype($test1, "string"); ?&&& &?php (string)$test2; ?&&& test1: &?php echo gettype($test1); ?&&br/&&& test2: &?php echo gettype($test2); ?&&br/&
Cast a string to binary using PHP & 5.2.1 $binary = unpack('c*', $string);
&?php$foo['ten'] = 10;& & & & & & $str = "$foo['ten']";& & & & $str = "$foo[ten]";& & & & & $fst = (string) $foo['ten']; ?&
For some reason the code-fix posted by philip_snyder at hotmail dot com [27-Feb-]didn't work for me neither with long_class_names nor with short_class_names. I'm using PHP v4.3.5 for Linux.Anyway here's what I wrote to solve the long_named_classes problem:&?phpfunction typecast($old_object, $new_classname) {& & if(class_exists($new_classname)) {& & & & $old_serialized_object = serialize($old_object);& & & & $old_object_name_length = strlen(get_class($old_object));& & & & $subtring_offset = $old_object_name_length + strlen($old_object_name_length) + 6;& & & & $new_serialized_object& = 'O:' . strlen($new_classname) . ':"' . $new_classname . '":';& & & & $new_serialized_object .= substr($old_serialized_object, $subtring_offset);& & & & return unserialize($new_serialized_object);& && } else {& & & && return false;& && }}?&
May be expected, but not stated ..Casting to the existing (same) type has no effect.$t = 'abc';& & & & & // string 'abc'$u=(array) $t;&& // array 0 =& string 'abc'& &-- now an array$v=(array) $u;& // array 0 =& string 'abc'& &-- unchanged
json_decode users consider this, when casting stdClass to array:&?php$obj = new stdClass();$obj-&{"2"} = "id";$arr = (array) $obj;$result = isset($arr["2"]) || array_key_exists(2, $arr); ?&..though casting is at least 2x faster than foreach.
Just a little experiment on the (unset) type cast:&?php$var = 1;$var_unset = (unset) $var;$var_ref_unset &= (unset) $var;var_dump($var);var_dump($var_unset);var_dump($var_ref_unset);?&output:int(1)NULLint(0)
IMAGINATION REQUIRED...We can be a witness to PHP's 'type-jugglin' in real-time with a simple implementation of a MemoryMap. For the sake our purposes, pretend that this is an empty MemoryMap.+-------+------+------+-------+| index | $var | type | value |+-------+------+------+-------+|& && 1 |& --- | NULL |& null ||& && 2 |& --- | NULL |& null ||& && 3 |& --- | NULL |& null ||& && 4 |& --- | NULL |& null |+-------+------+------+-------+&?php$a = 10;$b = "Hello";$c = array(55.45, 98.65);?&+-------+-------+---------+--------+| index |& $var |& & type |& value |+-------+-------+---------+--------+|& && 1 |& & $a | INTEGER |& && 10 ||& && 2 |& & $b |& STRING |& Hello ||& && 3 | $c[0] |&& FLOAT |& 55.45 ||& && 4 | $c[1] |&& FLOAT |& 98.65 |+-------+-------+---------+--------+&?php$a = "Bye";$b = 2;$c[0] = "Buy";$c[1] = "Now!";?&+-------+-------+---------+--------+| index |& $var |& & type |& value |+-------+-------+---------+--------+|& && 1 |& & $a |& STRING |& & Bye | &- used to be INTEGER|& && 2 |& & $b | INTEGER |& & & 2 | &- used to be STRING|& && 3 | $c[0] |& STRING |& & Buy | &- used to be FLOAT|& && 4 | $c[1] |& STRING |& Right | &- used to be FLOAT+-------+-------+---------+--------+

我要回帖

更多关于 php 数组转换字符串 的文章

 

随机推荐