update
This commit is contained in:
@@ -197,11 +197,6 @@ class Request
|
||||
|
||||
// QUERY
|
||||
|
||||
/**
|
||||
* @param string $key
|
||||
* @param mixed $default
|
||||
* @return mixed
|
||||
*/
|
||||
public function query_all() {
|
||||
return $_GET;
|
||||
}
|
||||
|
||||
+6
-1
@@ -109,7 +109,7 @@ class Str
|
||||
* @param string $str
|
||||
* @return string
|
||||
*/
|
||||
public function to_url($str) {
|
||||
public static function to_url($str) {
|
||||
$str = trim($str);
|
||||
$str = strtolower($str);
|
||||
$str = self::vn2en($str);
|
||||
@@ -125,4 +125,9 @@ class Str
|
||||
|
||||
return $str;
|
||||
}
|
||||
|
||||
public static function nl2p($text)
|
||||
{
|
||||
return str_replace(["\r\n", "\r", "\n"], '<p></p>', $text);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
namespace Nightmare;
|
||||
|
||||
class StrReg
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user