Hàm strtolower[] là một trong những hàm phổ biến nhất của PHP, được sử dụng rộng rãi để chuyển chuỗi thành chữ thường. Nó nhận một chuỗi làm tham số và chuyển đổi tất cả các ký tự tiếng Anh viết hoa của chuỗi đó thành chữ thường. Các ký tự khác như số, ký tự đặc biệt của chuỗi đó vẫn được giữ nguyên. Phiên bản PHP 4+ hỗ trợ chức năng này
Ghi chú. strtolower[] là một hàm an toàn nhị phân
Có một số hàm khác trong PHP tương tự như hàm strtolower[]
chức năng liên quan
- strtolower[] - Nó chuyển đổi một chuỗi thành chữ hoa
- lcfirst[] - Nó chuyển đổi ký tự đầu tiên của chuỗi thành chữ thường
- ucfirst[] - Nó chuyển đổi ký tự đầu tiên của chuỗi thành chữ hoa
- ucwords[] - Nó chuyển đổi ký tự đầu tiên của mỗi từ trong một chuỗi thành chữ hoa
cú pháp
Cú pháp của hàm strtolower[] được đưa ra bên dưới, chỉ nhận một tham số chuỗi
Thông số
$chuỗi [bắt buộc]. Đây là tham số bắt buộc của hàm này, nó chỉ định một chuỗi để chuyển đổi thành chữ thường. Nói một cách đơn giản - đó là một chuỗi được chuyển đổi thành chữ thường
Giá trị trả về
Nó trả về chuỗi chữ thường đã chuyển đổi
ví dụ
strtolower[] là một chức năng được sử dụng rộng rãi của PHP. Dưới đây một số ví dụ được đưa ra. Với sự trợ giúp của các ví dụ này, chúng ta có thể hiểu thực tế hoạt động của chức năng này
ví dụ 1
đầu ra
ví dụ 2
đầu ra
String before conversion: ALAYMA IS A CUTE AND SINCERE GIRL. String after conversion: alayma is a cute and sincere girl.
ví dụ 3
Trong ví dụ này, chúng ta sẽ thấy các ký tự đặc biệt được giữ nguyên sau khi áp dụng hàm strtolower[] trên chuỗi. Nó chỉ chuyển đổi các ký tự bảng chữ cái, trong khi không có thay đổi trong các ký hiệu đặc biệt
Để tạo một chuỗi PHP chữ thường, hãy sử dụng hàm strtolower[], chuyển đổi chuỗi thành chữ thường. Hàm trả về một chuỗi có tất cả các chữ cái viết thường
PHP strtolower[] Cú pháp
strtolower[string]
Ở đâu
- sợi dây. chỉ định chuỗi được chuyển thành chữ thường
Ví dụ chuỗi PHP thành chữ thường
#output: hello world!
Làm cách nào để chuyển đổi các ký tự không phải tiếng Anh thành chữ thường trong PHP?
Để chuyển đổi các ký tự không phải tiếng Anh thành chữ thường, bạn có thể sử dụng hàm mb_strtolower[]
Ví dụ chuỗi không phải tiếng Anh PHP thành chữ thường
#output: բարեւ աշխարհ!
Xem thêm
- Làm cách nào để tách một chuỗi trong PHP?
- Làm cách nào để chuyển đổi một mảng thành một chuỗi trong PHP?
- Làm cách nào để thay thế một chuỗi trong PHP?
- Làm cách nào để tìm độ dài của chuỗi trong PHP?
- Làm cách nào để kiểm tra xem một chuỗi có chứa chuỗi con trong PHP không?
Các ví dụ và bài viết về API liên quan đến chuỗi chữ thường PHP
Làm cách nào để gửi yêu cầu POST bằng PHP?
Laravel bao gồm nhiều hàm PHP "trợ giúp" toàn cầu. Nhiều chức năng trong số này được sử dụng bởi chính khung công tác;
phương pháp có sẵn
Mảng & Đối tượng
đường dẫn
Dây
Chuỗi thông thạo
URL
Điều khoản khác
Danh sách phương pháp
Mảng & Đối tượng
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
10
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
11 xác định xem giá trị đã cho có thể truy cập mảng hay khônguse Illuminate\Support\Arr;
use Illuminate\Support\Collection;
$isAccessible = Arr::accessible[['a' => 1, 'b' => 2]];
$isAccessible = Arr::accessible[new Collection];
$isAccessible = Arr::accessible['abc'];
$isAccessible = Arr::accessible[new stdClass];
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
12
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
13 thêm một cặp khóa/giá trị đã cho vào một mảng nếu khóa đã cho chưa tồn tại trong mảng hoặc được đặt thành use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
14strtolower[string]
0use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
15
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
16 thu gọn một mảng các mảng thành một mảng duy nhấtstrtolower[string]
3use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
17
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
18 nối chéo các mảng đã cho, trả về một tích Descartes với tất cả các hoán vị có thểuse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
19
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
20 trả về hai mảng. một chứa các khóa và một chứa các giá trị của mảng đã chostrtolower[string]
9use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
21
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
22 làm phẳng một mảng nhiều chiều thành một mảng cấp đơn sử dụng ký hiệu "dấu chấm" để biểu thị độ sâu
#output: hello world!
2use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
23
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
24 loại bỏ các cặp khóa/giá trị đã cho khỏi một mảng
#output: hello world!
5use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
25
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
26 kiểm tra xem khóa đã cho có tồn tại trong mảng được cung cấp không
#output: hello world!
8use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
27
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
28 trả về phần tử đầu tiên của một mảng vượt qua một bài kiểm tra giá trị thực cho trước
#output: բարեւ աշխարհ!
1Giá trị mặc định cũng có thể được truyền dưới dạng tham số thứ ba cho phương thức. Giá trị này sẽ được trả về nếu không có giá trị nào vượt qua bài kiểm tra đúng
#output: բարեւ աշխարհ!
2use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
29
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
30 làm phẳng một mảng nhiều chiều thành một mảng một cấpstrtolower[string]
00use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
31
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
32 xóa một cặp khóa/giá trị đã cho khỏi một mảng được lồng sâu bằng cách sử dụng ký hiệu "dấu chấm"strtolower[string]
01use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
33
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
34 truy xuất một giá trị từ một mảng được lồng sâu bằng cách sử dụng ký hiệu "dấu chấm"strtolower[string]
02Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
34 cũng chấp nhận một giá trị mặc định, giá trị này sẽ được trả về nếu khóa được chỉ định không có trong mảngstrtolower[string]
03use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
36
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
37 kiểm tra xem một mục hoặc các mục đã cho có tồn tại trong một mảng hay không bằng cách sử dụng ký hiệu "dấu chấm"strtolower[string]
04use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
38
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
39 kiểm tra xem có bất kỳ mục nào trong một tập hợp nhất định tồn tại trong một mảng hay không bằng cách sử dụng ký hiệu "dấu chấm"strtolower[string]
05use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
40
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
41 trả về use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
42 nếu mảng đã cho là mảng kết hợp. Một mảng được coi là "kết hợp" nếu nó không có các khóa số liên tiếp bắt đầu bằng 0strtolower[string]
06use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
43
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
44 trả về use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
42 nếu các khóa của mảng đã cho là các số nguyên liên tiếp bắt đầu từ 0strtolower[string]
07use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
46
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
47 nối các phần tử mảng với một chuỗi. Sử dụng đối số thứ hai của phương thức này, bạn cũng có thể chỉ định chuỗi nối cho phần tử cuối cùng của mảngstrtolower[string]
08use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
48
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
49 khóa mảng bằng khóa đã cho. Nếu nhiều mục có cùng khóa, chỉ mục cuối cùng sẽ xuất hiện trong mảng mớistrtolower[string]
09use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
50
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
51 trả về phần tử cuối cùng của một mảng vượt qua một bài kiểm tra giá trị thực cho trướcstrtolower[string]
30Một giá trị mặc định có thể được truyền làm đối số thứ ba cho phương thức. Giá trị này sẽ được trả về nếu không có giá trị nào vượt qua bài kiểm tra đúng
strtolower[string]
31use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
52
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
53 lặp qua mảng và chuyển từng giá trị và khóa cho lệnh gọi lại đã cho. Giá trị mảng được thay thế bằng giá trị được trả về bởi hàm gọi lạistrtolower[string]
32use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
54
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
55 chỉ trả về các cặp khóa/giá trị đã chỉ định từ mảng đã chostrtolower[string]
33use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
56
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
57 truy xuất tất cả các giá trị cho một khóa đã cho từ một mảngstrtolower[string]
34Bạn cũng có thể chỉ định cách bạn muốn danh sách kết quả được khóa
strtolower[string]
35use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
58
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
59 sẽ đẩy một mục lên đầu mảngstrtolower[string]
36Nếu cần, bạn có thể chỉ định khóa sẽ được sử dụng cho giá trị
strtolower[string]
37use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
60
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
61 thêm vào trước tất cả các tên khóa của một mảng kết hợp với tiền tố đã chostrtolower[string]
38use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
62
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
63 trả về và loại bỏ một cặp khóa/giá trị khỏi một mảngstrtolower[string]
39Một giá trị mặc định có thể được truyền làm đối số thứ ba cho phương thức. Giá trị này sẽ được trả về nếu khóa không tồn tại
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
0use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
64
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
65 chuyển đổi mảng thành chuỗi truy vấnuse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
1use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
66
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
67 trả về một giá trị ngẫu nhiên từ một mảnguse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
2Bạn cũng có thể chỉ định số mục sẽ trả về làm đối số thứ hai tùy chọn. Lưu ý rằng việc cung cấp đối số này sẽ trả về một mảng ngay cả khi chỉ cần một mục
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
3use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
68
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
69 đặt giá trị trong một mảng được lồng sâu bằng cách sử dụng ký hiệu "dấu chấm"use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
4use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
70
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
71 xáo trộn ngẫu nhiên các mục trong mảnguse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
5use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
72
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
73 sắp xếp một mảng theo các giá trị của nóuse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
6Bạn cũng có thể sắp xếp mảng theo kết quả của một bao đóng đã cho
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
7use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
74
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
75 sắp xếp đệ quy một mảng bằng cách sử dụng hàm use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
76 cho các mảng con được lập chỉ mục bằng số và hàm use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
77 cho các mảng con kết hợpuse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
8use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
78
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
79 biên dịch có điều kiện một chuỗi lớp CSS. Phương thức chấp nhận một mảng các lớp trong đó khóa mảng chứa lớp hoặc các lớp bạn muốn thêm, trong khi giá trị là một biểu thức boolean. Nếu phần tử mảng có khóa số thì nó sẽ luôn được đưa vào danh sách lớp kết xuấtuse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
9Phương thức này cung cấp năng lượng cho chức năng của Laravel, cho phép hợp nhất các lớp với túi thuộc tính của thành phần Blade cũng như chỉ thị
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
80 Bladeuse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
81
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
82 mở rộng mảng một chiều sử dụng ký hiệu "dấu chấm" thành mảng nhiều chiềustrtolower[string]
90use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
83
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
84 lọc một mảng bằng cách sử dụng bao đóng đã chostrtolower[string]
91use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
85
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
86 loại bỏ tất cả các giá trị use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
14 khỏi mảng đã chostrtolower[string]
92use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
88
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Phương thức
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
89 bọc giá trị đã cho trong một mảng. Nếu giá trị đã cho đã là một mảng, nó sẽ được trả về mà không sửa đổistrtolower[string]
93Nếu giá trị đã cho là
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
14, một mảng trống sẽ được trả vềstrtolower[string]
94use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
91
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Hàm
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
92 đặt một giá trị bị thiếu trong một mảng hoặc đối tượng lồng nhau bằng cách sử dụng ký hiệu "dấu chấm"strtolower[string]
95Hàm này cũng chấp nhận dấu hoa thị dưới dạng ký tự đại diện và sẽ điền vào mục tiêu tương ứng
strtolower[string]
96use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
93
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Hàm
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
94 truy xuất một giá trị từ một mảng hoặc đối tượng lồng nhau bằng cách sử dụng ký hiệu "dấu chấm"strtolower[string]
97Hàm
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
94 cũng chấp nhận một giá trị mặc định, giá trị này sẽ được trả về nếu không tìm thấy khóa đã chỉ địnhstrtolower[string]
98Hàm này cũng chấp nhận các ký tự đại diện sử dụng dấu hoa thị, có thể nhắm mục tiêu bất kỳ khóa nào của mảng hoặc đối tượng
strtolower[string]
99use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
96
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Hàm
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
97 đặt giá trị trong một mảng hoặc đối tượng lồng nhau bằng cách sử dụng ký hiệu "dấu chấm"
#output: hello world!
20Hàm này cũng chấp nhận các ký tự đại diện sử dụng dấu hoa thị và sẽ đặt các giá trị trên mục tiêu tương ứng
#output: hello world!
21Theo mặc định, mọi giá trị hiện có đều bị ghi đè. Nếu bạn chỉ muốn đặt một giá trị nếu nó không tồn tại, bạn có thể chuyển
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
98 làm đối số thứ tư cho hàm
#output: hello world!
22use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
99
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
Hàm
strtolower[string]
900 trả về phần tử đầu tiên trong mảng đã chostrtolower[string]
901
strtolower[string]
Hàm
strtolower[string]
902 trả về phần tử cuối cùng trong mảng đã chođường dẫn
strtolower[string]
903
strtolower[string]
Hàm
strtolower[string]
904 trả về đường dẫn đủ điều kiện tới thư mục strtolower[string]
905 của ứng dụng của bạn. Bạn cũng có thể sử dụng hàm strtolower[string]
904 để tạo đường dẫn đủ điều kiện tới tệp liên quan đến thư mục ứng dụng
#output: hello world!
23strtolower[string]
907
strtolower[string]
The
strtolower[string]
908 function returns the fully qualified path to your application's root directory. You may also use the strtolower[string]
908 function to generate a fully qualified path to a given file relative to the project root directory
#output: hello world!
24strtolower[string]
910
strtolower[string]
The
strtolower[string]
911 function returns the fully qualified path to your application's strtolower[string]
912 directory. You may also use the strtolower[string]
911 function to generate a fully qualified path to a given file within the application's configuration directory
#output: hello world!
25strtolower[string]
914
strtolower[string]
The
strtolower[string]
915 function returns the fully qualified path to your application's strtolower[string]
916 directory. You may also use the strtolower[string]
915 function to generate a fully qualified path to a given file within the database directory
#output: hello world!
26strtolower[string]
918
strtolower[string]
The
strtolower[string]
919 function returns the fully qualified path to your application's strtolower[string]
920 directory. You may also use the strtolower[string]
919 function to generate a fully qualified path to a given file within the directory
#output: hello world!
27strtolower[string]
922
strtolower[string]
The
strtolower[string]
923 function returns the path to a versioned Mix file
#output: hello world!
28strtolower[string]
924
strtolower[string]
Hàm
strtolower[string]
925 trả về đường dẫn đủ điều kiện tới thư mục strtolower[string]
926 của ứng dụng của bạn. You may also use the strtolower[string]
925 function to generate a fully qualified path to a given file within the public directory
#output: hello world!
29strtolower[string]
928
strtolower[string]
Hàm
strtolower[string]
929 trả về đường dẫn đủ điều kiện tới thư mục strtolower[string]
930 của ứng dụng của bạn. You may also use the strtolower[string]
929 function to generate a fully qualified path to a given file within the resources directory
#output: hello world!
50strtolower[string]
932
strtolower[string]
Hàm
strtolower[string]
933 trả về đường dẫn đủ điều kiện tới thư mục strtolower[string]
934 của ứng dụng của bạn. Bạn cũng có thể sử dụng hàm strtolower[string]
933 để tạo đường dẫn đủ điều kiện tới một tệp đã cho trong thư mục lưu trữ
#output: hello world!
51Dây
strtolower[string]
936
strtolower[string]
Hàm
strtolower[string]
937 dịch chuỗi dịch đã cho hoặc khóa dịch bằng các tệp bản địa hóa của bạn
#output: hello world!
52Nếu chuỗi hoặc khóa dịch được chỉ định không tồn tại, hàm
strtolower[string]
937 sẽ trả về giá trị đã cho. Vì vậy, sử dụng ví dụ trên, hàm strtolower[string]
937 sẽ trả về strtolower[string]
940 nếu khóa dịch đó không tồn tạistrtolower[string]
941
strtolower[string]
Hàm
strtolower[string]
942 trả về tên lớp của lớp đã cho với không gian tên của lớp đã bị xóa
#output: hello world!
53strtolower[string]
943
strtolower[string]
Hàm
strtolower[string]
944 chạy hàm strtolower[string]
945 của PHP với tùy chọn strtolower[string]
946 được đặt thành use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
42 theo mặc định
#output: hello world!
54strtolower[string]
948
strtolower[string]
Hàm
strtolower[string]
949 thay thế tuần tự một mẫu đã cho trong chuỗi bằng cách sử dụng một mảng
#output: hello world!
55strtolower[string]
950
strtolower[string]
Phương thức
strtolower[string]
951 trả về mọi thứ sau giá trị đã cho trong một chuỗi. Toàn bộ chuỗi sẽ được trả về nếu giá trị không tồn tại trong chuỗi
#output: hello world!
56strtolower[string]
952
strtolower[string]
Phương thức
strtolower[string]
953 trả về mọi thứ sau lần xuất hiện cuối cùng của giá trị đã cho trong một chuỗi. Toàn bộ chuỗi sẽ được trả về nếu giá trị không tồn tại trong chuỗi
#output: hello world!
57strtolower[string]
954
strtolower[string]
Phương thức
strtolower[string]
955 sẽ cố gắng chuyển ngữ chuỗi thành giá trị ASCII
#output: hello world!
58strtolower[string]
956
strtolower[string]
The
strtolower[string]
957 method returns everything before the given value in a string
#output: hello world!
59strtolower[string]
958
strtolower[string]
The
strtolower[string]
959 method returns everything before the last occurrence of the given value in a string
#output: hello world!
80strtolower[string]
960
strtolower[string]
The
strtolower[string]
961 method returns the portion of a string between two values
#output: hello world!
81strtolower[string]
962
strtolower[string]
Phương thức
strtolower[string]
963 trả về phần nhỏ nhất có thể của một chuỗi giữa hai giá trị
#output: hello world!
82strtolower[string]
964
strtolower[string]
The
strtolower[string]
965 method converts the given string to strtolower[string]
966
#output: hello world!
83strtolower[string]
967
strtolower[string]
The
strtolower[string]
968 method determines if the given string contains the given value. This method is case sensitive
#output: hello world!
84You may also pass an array of values to determine if the given string contains any of the values in the array
#output: hello world!
85strtolower[string]
969
strtolower[string]
The
strtolower[string]
970 method determines if the given string contains all of the values in a given array
#output: hello world!
86strtolower[string]
971
strtolower[string]
The
strtolower[string]
972 method determines if the given string ends with the given value
#output: hello world!
87You may also pass an array of values to determine if the given string ends with any of the values in the array
#output: hello world!
88strtolower[string]
973
strtolower[string]
The
strtolower[string]
974 method extracts an excerpt from a given string that matches the first instance of a phrase within that string
#output: hello world!
89The
strtolower[string]
975 option, which defaults to strtolower[string]
976, allows you to define the number of characters that should appear on each side of the truncated stringIn addition, you may use the
strtolower[string]
977 option to define the string that will be prepended and appended to the truncated string
#output: բարեւ աշխարհ!
10strtolower[string]
978
strtolower[string]
The
strtolower[string]
979 method adds a single instance of the given value to a string if it does not already end with that value
#output: բարեւ աշխարհ!
11strtolower[string]
980
strtolower[string]
The
strtolower[string]
981 method will convert strings delimited by casing, hyphens, or underscores into a space delimited string with each word's first letter capitalized
#output: բարեւ աշխարհ!
12strtolower[string]
982
strtolower[string]
The
strtolower[string]
983 method converts GitHub flavored Markdown into inline HTML using CommonMark. However, unlike the strtolower[string]
984 method, it does not wrap all generated HTML in a block-level element
#output: բարեւ աշխարհ!
13strtolower[string]
985
strtolower[string]
The
strtolower[string]
986 method determines if a given string matches a given pattern. Asterisks may be used as wildcard values
#output: բարեւ աշխարհ!
14strtolower[string]
987
strtolower[string]
The
strtolower[string]
988 method determines if a given string is 7 bit ASCII
#output: բարեւ աշխարհ!
15strtolower[string]
989
strtolower[string]
The
strtolower[string]
990 method determines if the given string is valid JSON
#output: բարեւ աշխարհ!
16strtolower[string]
991
strtolower[string]
The
strtolower[string]
992 method determines if the given string is a valid ULID
#output: բարեւ աշխարհ!
17strtolower[string]
993
strtolower[string]
The
strtolower[string]
994 method determines if the given string is a valid UUID
#output: բարեւ աշխարհ!
18strtolower[string]
995
strtolower[string]
The
strtolower[string]
996 method converts the given string to strtolower[string]
997
#output: բարեւ աշխարհ!
19strtolower[string]
998
strtolower[string]
The
strtolower[string]
999 method returns the given string with the first character lowercased
#output: բարեւ աշխարհ!
20
#output: hello world!
200
#output: hello world!
The
#output: hello world!
201 method returns the length of the given string
#output: բարեւ աշխարհ!
21
#output: hello world!
202
#output: hello world!
The
#output: hello world!
203 method truncates the given string to the specified length
#output: բարեւ աշխարհ!
22Bạn có thể chuyển đối số thứ ba cho phương thức để thay đổi chuỗi sẽ được thêm vào cuối chuỗi bị cắt bớt
#output: բարեւ աշխարհ!
23
#output: hello world!
204
#output: hello world!
Phương thức
#output: hello world!
205 chuyển đổi chuỗi đã cho thành chữ thường
#output: բարեւ աշխարհ!
24
#output: hello world!
206
#output: hello world!
Phương pháp
#output: hello world!
207 chuyển đổi Markdown có hương vị GitHub thành HTML bằng CommonMark
#output: բարեւ աշխարհ!
25
#output: hello world!
208
#output: hello world!
Phương thức
#output: hello world!
209 che giấu một phần của chuỗi có ký tự lặp lại và có thể được sử dụng để làm xáo trộn các phân đoạn của chuỗi như địa chỉ email và số điện thoại
#output: hello world!
58Nếu cần, bạn cung cấp một số âm làm đối số thứ ba cho phương thức
#output: hello world!
210, điều này sẽ hướng dẫn phương thức bắt đầu tạo mặt nạ ở khoảng cách nhất định tính từ cuối chuỗi
#output: hello world!
211
#output: hello world!
Phương thức
#output: hello world!
212 tạo UUID "dấu thời gian đầu tiên" có thể được lưu trữ hiệu quả trong cột cơ sở dữ liệu được lập chỉ mục. Mỗi UUID được tạo bằng phương pháp này sẽ được sắp xếp sau các UUID được tạo trước đó bằng phương pháp này
#output: բարեւ աշխարհ!
27
#output: hello world!
213
#output: hello world!
Phương thức
#output: hello world!
214 bao bọc hàm
#output: hello world!
215 của PHP, đệm cả hai bên của một chuỗi bằng một chuỗi khác cho đến khi chuỗi cuối cùng đạt đến độ dài mong muốn
#output: բարեւ աշխարհ!
28
#output: hello world!
216
#output: hello world!
Phương thức
#output: hello world!
217 bao bọc hàm
#output: hello world!
215 của PHP, đệm bên trái của một chuỗi bằng một chuỗi khác cho đến khi chuỗi cuối cùng đạt đến độ dài mong muốn
#output: բարեւ աշխարհ!
29
#output: hello world!
219
#output: hello world!
Phương thức
#output: hello world!
220 bao bọc hàm
#output: hello world!
215 của PHP, đệm vào bên phải của một chuỗi bằng một chuỗi khác cho đến khi chuỗi cuối cùng đạt đến độ dài mong muốnstrtolower[string]
000
#output: hello world!
222
#output: hello world!
Phương thức
#output: hello world!
223 chuyển đổi một chuỗi từ số ít thành dạng số nhiều của nó. Chức năng này hỗ trợ bất kỳ ngôn ngữ nào được hỗ trợ bởi bộ đa ngôn ngữ của Laravelstrtolower[string]
001Bạn có thể cung cấp một số nguyên làm đối số thứ hai cho hàm để truy xuất dạng số ít hoặc số nhiều của chuỗi
strtolower[string]
002
#output: hello world!
224
#output: hello world!
Phương thức
#output: hello world!
225 chuyển đổi một chuỗi từ số ít được định dạng trong trường hợp viết hoa thành dạng số nhiều của nó. Chức năng này hỗ trợ bất kỳ ngôn ngữ nào được hỗ trợ bởi bộ đa ngôn ngữ của Laravelstrtolower[string]
003Bạn có thể cung cấp một số nguyên làm đối số thứ hai cho hàm để truy xuất dạng số ít hoặc số nhiều của chuỗi
strtolower[string]
004
#output: hello world!
226
#output: hello world!
Phương thức
#output: hello world!
227 tạo một chuỗi ngẫu nhiên có độ dài được chỉ định. Hàm này sử dụng hàm
#output: hello world!
228 của PHP
#output: hello world!
58
#output: hello world!
229
#output: hello world!
Phương thức
#output: hello world!
230 xóa giá trị đã cho hoặc mảng giá trị khỏi chuỗistrtolower[string]
006Bạn cũng có thể chuyển
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
98 làm đối số thứ ba cho phương thức
#output: hello world!
232 để bỏ qua trường hợp khi xóa chuỗi
#output: hello world!
233
#output: hello world!
Phương thức
#output: hello world!
234 thay thế một chuỗi đã cho trong chuỗistrtolower[string]
007
#output: hello world!
235
#output: hello world!
Phương thức
#output: hello world!
236 thay thế một giá trị nhất định trong chuỗi theo tuần tự bằng cách sử dụng một mảngstrtolower[string]
008
#output: hello world!
237
#output: hello world!
Phương thức
#output: hello world!
238 thay thế lần xuất hiện đầu tiên của một giá trị đã cho trong một chuỗistrtolower[string]
009
#output: hello world!
239
#output: hello world!
Phương thức
#output: hello world!
240 thay thế lần xuất hiện cuối cùng của một giá trị đã cho trong một chuỗistrtolower[string]
010
#output: hello world!
241
#output: hello world!
Phương thức
#output: hello world!
242 đảo ngược chuỗi đã chostrtolower[string]
011
#output: hello world!
243
#output: hello world!
Phương thức
#output: hello world!
244 chuyển đổi một chuỗi thành dạng số ít của nó. Chức năng này hỗ trợ bất kỳ ngôn ngữ nào được hỗ trợ bởi bộ đa ngôn ngữ của Laravelstrtolower[string]
012
#output: hello world!
245
#output: hello world!
Phương thức
#output: hello world!
246 tạo ra một "slug" thân thiện với URL từ chuỗi đã chostrtolower[string]
013
#output: hello world!
247
#output: hello world!
Phương thức
#output: hello world!
248 chuyển đổi chuỗi đã cho thành
#output: hello world!
249strtolower[string]
014
#output: hello world!
250
#output: hello world!
Phương thức
#output: hello world!
251 loại bỏ tất cả khoảng trắng không liên quan khỏi một chuỗi, bao gồm cả khoảng trắng không liên quan giữa các từstrtolower[string]
015
#output: hello world!
252
#output: hello world!
Phương thức
#output: hello world!
253 thêm một thể hiện duy nhất của giá trị đã cho vào một chuỗi nếu nó chưa bắt đầu với giá trị đóstrtolower[string]
016
#output: hello world!
254
#output: hello world!
Phương thức
#output: hello world!
255 xác định xem chuỗi đã cho có bắt đầu bằng giá trị đã cho hay khôngstrtolower[string]
017Nếu một mảng các giá trị có thể được truyền vào, phương thức
#output: hello world!
256 sẽ trả về use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
42 nếu chuỗi bắt đầu bằng bất kỳ giá trị nào đã chostrtolower[string]
018
#output: hello world!
258
#output: hello world!
Phương thức
#output: hello world!
259 chuyển đổi chuỗi đã cho thành
#output: hello world!
260strtolower[string]
019
#output: hello world!
261
#output: hello world!
Phương thức
#output: hello world!
262 trả về phần chuỗi được chỉ định bởi tham số bắt đầu và độ dàistrtolower[string]
020
#output: hello world!
263
#output: hello world!
Phương thức
#output: hello world!
264 trả về số lần xuất hiện của một giá trị đã cho trong chuỗi đã chostrtolower[string]
021
#output: hello world!
265
#output: hello world!
Phương thức
#output: hello world!
266 thay thế văn bản trong một phần của chuỗi, bắt đầu từ vị trí được chỉ định bởi đối số thứ ba và thay thế số lượng ký tự được chỉ định bởi đối số thứ tư. Truyền
#output: hello world!
267 cho đối số thứ tư của phương thức sẽ chèn chuỗi vào vị trí đã chỉ định mà không thay thế bất kỳ ký tự hiện có nào trong chuỗistrtolower[string]
022
#output: hello world!
268
#output: hello world!
Phương thức
#output: hello world!
269 thay thế nhiều giá trị trong chuỗi đã cho bằng cách sử dụng hàm
#output: hello world!
270 của PHPstrtolower[string]
023
#output: hello world!
271
#output: hello world!
Phương thức
#output: hello world!
272 chuyển đổi chuỗi đã cho thành
#output: hello world!
273strtolower[string]
024
#output: hello world!
274
#output: hello world!
Phương thức
#output: hello world!
275 chuyển đổi thể hiện chuỗi thành thể hiện của
#output: hello world!
276, có thể được hiển thị trong các mẫu Bladestrtolower[string]
025
#output: hello world!
277
#output: hello world!
Phương thức
#output: hello world!
278 trả về chuỗi đã cho với ký tự đầu tiên được viết hoastrtolower[string]
026
#output: hello world!
279
#output: hello world!
Phương thức
#output: hello world!
280 tách chuỗi đã cho thành một mảng bằng các ký tự viết hoastrtolower[string]
027
#output: hello world!
281
#output: hello world!
Phương thức
#output: hello world!
282 chuyển đổi chuỗi đã cho thành chữ hoastrtolower[string]
028
#output: hello world!
283
#output: hello world!
Phương thức
#output: hello world!
284 tạo ULIDstrtolower[string]
029
#output: hello world!
285
#output: hello world!
Phương thức
#output: hello world!
286 tạo UUID [phiên bản 4]strtolower[string]
030
#output: hello world!
287
#output: hello world!
Phương thức
#output: hello world!
288 trả về số từ mà một chuỗi chứastrtolower[string]
031
#output: hello world!
289
#output: hello world!
Phương pháp
#output: hello world!
290 giới hạn số lượng từ trong một chuỗi. Một chuỗi bổ sung có thể được chuyển đến phương thức này thông qua đối số thứ ba của nó để chỉ định chuỗi nào sẽ được thêm vào cuối chuỗi bị cắt bớtstrtolower[string]
032
#output: hello world!
291
#output: hello world!
Hàm
#output: hello world!
292 trả về một phiên bản
#output: hello world!
293 mới của chuỗi đã cho. Hàm này tương đương với phương thức
#output: hello world!
294strtolower[string]
033Nếu không có đối số nào được cung cấp cho hàm
#output: hello world!
292, thì hàm này sẽ trả về một thể hiện của
#output: hello world!
296strtolower[string]
034
#output: hello world!
297
#output: hello world!
Hàm
#output: hello world!
298 dịch khóa dịch đã cho bằng các tệp bản địa hóa của bạnstrtolower[string]
035Nếu khóa dịch được chỉ định không tồn tại, hàm
#output: hello world!
298 sẽ trả về khóa đã cho. Vì vậy, sử dụng ví dụ trên, hàm
#output: hello world!
298 sẽ trả về strtolower[string]
940 nếu khóa dịch không tồn tại
#output: hello world!
502
#output: hello world!
Hàm
#output: hello world!
503 dịch khóa dịch đã cho theo cách uốnstrtolower[string]
036Nếu khóa dịch được chỉ định không tồn tại, hàm
#output: hello world!
503 sẽ trả về khóa đã cho. Vì vậy, sử dụng ví dụ trên, hàm
#output: hello world!
503 sẽ trả về
#output: hello world!
506 nếu khóa dịch không tồn tạiChuỗi thông thạo
Các chuỗi thông thạo cung cấp giao diện hướng đối tượng trôi chảy hơn để làm việc với các giá trị chuỗi, cho phép bạn xâu chuỗi nhiều thao tác chuỗi lại với nhau bằng cú pháp dễ đọc hơn so với các thao tác chuỗi truyền thống
#output: hello world!
507
#output: hello world!
Phương thức
#output: hello world!
507 trả về mọi thứ sau giá trị đã cho trong một chuỗi. Toàn bộ chuỗi sẽ được trả về nếu giá trị không tồn tại trong chuỗistrtolower[string]
037
#output: hello world!
509
#output: hello world!
Phương thức
#output: hello world!
509 trả về mọi thứ sau lần xuất hiện cuối cùng của giá trị đã cho trong một chuỗi. Toàn bộ chuỗi sẽ được trả về nếu giá trị không tồn tại trong chuỗistrtolower[string]
038
#output: hello world!
511
#output: hello world!
Phương thức
#output: hello world!
511 nối các giá trị đã cho vào chuỗistrtolower[string]
039
#output: hello world!
513
#output: hello world!
Phương thức
#output: hello world!
513 sẽ cố gắng chuyển ngữ chuỗi thành giá trị ASCIIstrtolower[string]
040
#output: hello world!
515
#output: hello world!
Phương thức
#output: hello world!
515 sẽ trả về thành phần tên theo sau của chuỗi đã chostrtolower[string]
041Nếu cần, bạn có thể cung cấp một "tiện ích mở rộng" sẽ bị xóa khỏi thành phần theo sau
strtolower[string]
042
#output: hello world!
517
#output: hello world!
Phương thức
#output: hello world!
517 trả về mọi thứ trước giá trị đã cho trong một chuỗistrtolower[string]
043
#output: hello world!
519
#output: hello world!
Phương thức
#output: hello world!
519 trả về mọi thứ trước lần xuất hiện cuối cùng của giá trị đã cho trong một chuỗistrtolower[string]
044
#output: hello world!
521
#output: hello world!
Phương thức
#output: hello world!
521 trả về phần của chuỗi nằm giữa hai giá trịstrtolower[string]
045
#output: hello world!
523
#output: hello world!
Phương thức
#output: hello world!
523 trả về phần nhỏ nhất có thể của một chuỗi giữa hai giá trịstrtolower[string]
046
#output: hello world!
525
#output: hello world!
Phương thức
#output: hello world!
525 chuyển đổi chuỗi đã cho thành strtolower[string]
966strtolower[string]
047
#output: hello world!
528
#output: hello world!
Phương thức
#output: hello world!
528 trả về tên lớp của lớp đã cho với vùng tên của lớp đã bị xóastrtolower[string]
048
#output: hello world!
530
#output: hello world!
Phương thức
#output: hello world!
530 xác định xem chuỗi đã cho có chứa giá trị đã cho hay không. Phương pháp này phân biệt chữ hoa chữ thườngstrtolower[string]
049You may also pass an array of values to determine if the given string contains any of the values in the array
strtolower[string]
050
#output: hello world!
532
#output: hello world!
Phương thức
#output: hello world!
532 xác định xem chuỗi đã cho có chứa tất cả các giá trị trong mảng đã cho hay khôngstrtolower[string]
051
#output: hello world!
534
#output: hello world!
Phương thức
#output: hello world!
534 trả về phần thư mục mẹ của chuỗi đã chostrtolower[string]
052Nếu cần, bạn có thể chỉ định bao nhiêu cấp độ thư mục mà bạn muốn cắt khỏi chuỗi
strtolower[string]
053
#output: hello world!
536
#output: hello world!
Phương thức
#output: hello world!
536 trích xuất một đoạn trích từ chuỗi khớp với phiên bản đầu tiên của cụm từ trong chuỗi đóstrtolower[string]
054The
strtolower[string]
975 option, which defaults to strtolower[string]
976, allows you to define the number of characters that should appear on each side of the truncated stringNgoài ra, bạn có thể sử dụng tùy chọn
strtolower[string]
977 để thay đổi chuỗi sẽ được thêm vào trước và thêm vào chuỗi bị cắt bớtstrtolower[string]
055
#output: hello world!
541
#output: hello world!
Phương thức
#output: hello world!
541 xác định xem chuỗi đã cho có kết thúc bằng giá trị đã cho hay khôngstrtolower[string]
056You may also pass an array of values to determine if the given string ends with any of the values in the array
strtolower[string]
057
#output: hello world!
543
#output: hello world!
Phương thức
#output: hello world!
543 xác định xem chuỗi đã cho có khớp chính xác với chuỗi khác khôngstrtolower[string]
058
#output: hello world!
545
#output: hello world!
Phương thức
#output: hello world!
545 phân tách chuỗi theo dấu phân cách đã cho và trả về một bộ sưu tập chứa từng phần của chuỗi phân táchstrtolower[string]
059
#output: hello world!
547
#output: hello world!
Phương thức
#output: hello world!
547 thêm một thể hiện duy nhất của giá trị đã cho vào một chuỗi nếu nó chưa kết thúc bằng giá trị đóstrtolower[string]
060
#output: hello world!
549
#output: hello world!
Phương thức
#output: hello world!
549 sẽ chuyển đổi các chuỗi được phân tách bằng chữ hoa, dấu gạch ngang hoặc dấu gạch dưới thành một chuỗi được phân cách bằng dấu cách với chữ cái đầu tiên của mỗi từ được viết hoastrtolower[string]
061
#output: hello world!
551
#output: hello world!
Phương pháp
#output: hello world!
551 chuyển đổi Markdown có hương vị GitHub thành HTML nội tuyến bằng CommonMark. Tuy nhiên, không giống như phương pháp strtolower[string]
984, nó không bao bọc tất cả HTML được tạo trong phần tử cấp khốistrtolower[string]
062Phương thức
#output: hello world!
554 xác định xem một chuỗi đã cho có khớp với một mẫu nhất định hay không. Dấu hoa thị có thể được sử dụng làm giá trị ký tự đại diệnstrtolower[string]
063
#output: hello world!
555
#output: hello world!
Phương thức
#output: hello world!
555 xác định xem một chuỗi đã cho có phải là chuỗi ASCII khôngstrtolower[string]
064
#output: hello world!
557
#output: hello world!
Phương thức
#output: hello world!
557 xác định xem chuỗi đã cho có trống khôngstrtolower[string]
065
#output: hello world!
559
#output: hello world!
Phương thức
#output: hello world!
559 xác định xem chuỗi đã cho có trống khôngstrtolower[string]
066
#output: hello world!
561
#output: hello world!
Phương thức
#output: hello world!
561 xác định xem một chuỗi đã cho có phải là JSON hợp lệ hay khôngstrtolower[string]
067
#output: hello world!
563
#output: hello world!
Phương thức
#output: hello world!
563 xác định xem một chuỗi đã cho có phải là ULID hay khôngstrtolower[string]
068
#output: hello world!
565
#output: hello world!
Phương thức
#output: hello world!
565 xác định xem một chuỗi đã cho có phải là UUID hay khôngstrtolower[string]
069
#output: hello world!
567
#output: hello world!
Phương thức
#output: hello world!
567 chuyển đổi chuỗi đã cho thành strtolower[string]
997strtolower[string]
070
#output: hello world!
570
#output: hello world!
Phương thức
#output: hello world!
570 trả về chuỗi đã cho với ký tự đầu tiên là chữ thườngstrtolower[string]
071
#output: hello world!
572
#output: hello world!
Phương thức
#output: hello world!
572 trả về độ dài của chuỗi đã chostrtolower[string]
072
#output: hello world!
574
#output: hello world!
Phương thức
#output: hello world!
574 cắt ngắn chuỗi đã cho theo độ dài đã chỉ địnhstrtolower[string]
073Bạn cũng có thể chuyển đối số thứ hai để thay đổi chuỗi sẽ được thêm vào cuối chuỗi bị cắt bớt
strtolower[string]
074
#output: hello world!
576
#output: hello world!
Phương thức
#output: hello world!
576 chuyển đổi chuỗi đã cho thành chữ thườngstrtolower[string]
075
#output: hello world!
578
#output: hello world!
Phương thức
#output: hello world!
578 cắt bỏ phần bên trái của chuỗistrtolower[string]
076strtolower[string]
984
strtolower[string]
Phương pháp
strtolower[string]
984 chuyển đổi Markdown có hương vị GitHub thành HTMLstrtolower[string]
077
#output: hello world!
210
#output: hello world!
Phương thức
#output: hello world!
210 che giấu một phần của chuỗi có ký tự lặp lại và có thể được sử dụng để làm xáo trộn các phân đoạn của chuỗi như địa chỉ email và số điện thoại
#output: hello world!
58Nếu cần, bạn cung cấp một số âm làm đối số thứ ba cho phương thức
#output: hello world!
210, điều này sẽ hướng dẫn phương thức bắt đầu tạo mặt nạ ở khoảng cách nhất định tính từ cuối chuỗi
#output: hello world!
585
#output: hello world!
Phương thức
#output: hello world!
585 sẽ trả về phần của chuỗi khớp với mẫu biểu thức chính quy đã chostrtolower[string]
079
#output: hello world!
587
#output: hello world!
Phương thức
#output: hello world!
587 sẽ trả về một tập hợp chứa các phần của chuỗi khớp với mẫu biểu thức chính quy đã chostrtolower[string]
080Nếu bạn chỉ định một nhóm phù hợp trong biểu thức, Laravel sẽ trả về một tập hợp các kết quả phù hợp của nhóm đó
strtolower[string]
081Nếu không tìm thấy kết quả phù hợp, một bộ sưu tập trống sẽ được trả về
#output: hello world!
589
#output: hello world!
Phương thức
#output: hello world!
589 nối thêm ký tự "cuối dòng" vào một chuỗistrtolower[string]
082
#output: hello world!
591
#output: hello world!
Phương thức
#output: hello world!
591 bao bọc hàm
#output: hello world!
215 của PHP, đệm cả hai bên của một chuỗi bằng một chuỗi khác cho đến khi chuỗi cuối cùng đạt đến độ dài mong muốnstrtolower[string]
083
#output: hello world!
594
#output: hello world!
Phương thức
#output: hello world!
594 bao bọc hàm
#output: hello world!
215 của PHP, đệm bên trái của một chuỗi bằng một chuỗi khác cho đến khi chuỗi cuối cùng đạt đến độ dài mong muốnstrtolower[string]
084
#output: hello world!
597
#output: hello world!
Phương thức
#output: hello world!
597 bao bọc hàm
#output: hello world!
215 của PHP, đệm vào bên phải của một chuỗi bằng một chuỗi khác cho đến khi chuỗi cuối cùng đạt đến độ dài mong muốnstrtolower[string]
085
#output: hello world!
800
#output: hello world!
Phương thức
#output: hello world!
800 cho phép bạn chuyển đổi chuỗi bằng cách chuyển giá trị hiện tại của nó sang giá trị có thể gọi đã chostrtolower[string]
086
#output: hello world!
802
#output: hello world!
Phương thức
#output: hello world!
802 chuyển đổi một chuỗi từ số ít thành dạng số nhiều của nó. Chức năng này hỗ trợ bất kỳ ngôn ngữ nào được hỗ trợ bởi bộ đa ngôn ngữ của Laravelstrtolower[string]
087Bạn có thể cung cấp một số nguyên làm đối số thứ hai cho hàm để truy xuất dạng số ít hoặc số nhiều của chuỗi
strtolower[string]
088
#output: hello world!
804
#output: hello world!
Phương thức
#output: hello world!
804 thêm các giá trị đã cho vào chuỗistrtolower[string]
089
#output: hello world!
232
#output: hello world!
Phương thức
#output: hello world!
232 xóa giá trị đã cho hoặc mảng giá trị khỏi chuỗistrtolower[string]
090Bạn cũng có thể chuyển
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
98 làm tham số thứ hai để bỏ qua trường hợp khi xóa chuỗi
#output: hello world!
809
#output: hello world!
Phương thức
#output: hello world!
809 thay thế một chuỗi đã cho trong chuỗistrtolower[string]
091
#output: hello world!
811
#output: hello world!
Phương thức
#output: hello world!
811 thay thế một giá trị nhất định trong chuỗi theo tuần tự bằng cách sử dụng một mảngstrtolower[string]
092
#output: hello world!
813
#output: hello world!
Phương thức
#output: hello world!
813 thay thế lần xuất hiện đầu tiên của một giá trị đã cho trong một chuỗistrtolower[string]
093
#output: hello world!
815
#output: hello world!
Phương thức
#output: hello world!
815 thay thế lần xuất hiện cuối cùng của một giá trị đã cho trong một chuỗistrtolower[string]
094
#output: hello world!
817
#output: hello world!
Phương thức
#output: hello world!
817 thay thế tất cả các phần của chuỗi khớp với mẫu bằng chuỗi thay thế đã chostrtolower[string]
095Phương thức
#output: hello world!
817 cũng chấp nhận một bao đóng sẽ được gọi với từng phần của chuỗi khớp với mẫu đã cho, cho phép bạn thực hiện logic thay thế trong bao đóng và trả về giá trị được thay thếstrtolower[string]
096
#output: hello world!
820
#output: hello world!
Phương thức
#output: hello world!
820 cắt bỏ phía bên phải của chuỗi đã chostrtolower[string]
097
#output: hello world!
822
#output: hello world!
Phương thức
#output: hello world!
822 phân tích cú pháp đầu vào từ một chuỗi thành một bộ sưu tập theo định dạng được hỗ trợ bởi hàm
#output: hello world!
824 PHPstrtolower[string]
098
#output: hello world!
825
#output: hello world!
Phương thức
#output: hello world!
825 chuyển đổi một chuỗi thành dạng số ít của nó. Chức năng này hỗ trợ bất kỳ ngôn ngữ nào được hỗ trợ bởi bộ đa ngôn ngữ của Laravelstrtolower[string]
099
#output: hello world!
827
#output: hello world!
Phương thức
#output: hello world!
827 tạo ra một "slug" thân thiện với URL từ chuỗi đã chostrtolower[string]
300
#output: hello world!
829
#output: hello world!
Phương thức
#output: hello world!
829 chuyển đổi chuỗi đã cho thành
#output: hello world!
249strtolower[string]
301
#output: hello world!
832
#output: hello world!
Phương thức
#output: hello world!
832 tách một chuỗi thành một tập hợp bằng biểu thức chính quystrtolower[string]
302
#output: hello world!
834
#output: hello world!
Phương thức
#output: hello world!
834 loại bỏ tất cả khoảng trắng không liên quan khỏi một chuỗi, bao gồm cả khoảng trắng không liên quan giữa các từstrtolower[string]
303
#output: hello world!
836
#output: hello world!
Phương thức
#output: hello world!
836 thêm một thể hiện duy nhất của giá trị đã cho vào một chuỗi nếu nó chưa bắt đầu với giá trị đóstrtolower[string]
304
#output: hello world!
256
#output: hello world!
Phương thức
#output: hello world!
256 xác định xem chuỗi đã cho có bắt đầu bằng giá trị đã cho hay khôngstrtolower[string]
305
#output: hello world!
840
#output: hello world!
Phương thức
#output: hello world!
840 chuyển đổi chuỗi đã cho thành
#output: hello world!
260strtolower[string]
306
#output: hello world!
843
#output: hello world!
Phương thức
#output: hello world!
843 trả về phần của chuỗi được chỉ định bởi các tham số bắt đầu và độ dài đã chostrtolower[string]
307
#output: hello world!
845
#output: hello world!
Phương thức
#output: hello world!
845 thay thế văn bản trong một phần của chuỗi, bắt đầu từ vị trí được chỉ định bởi đối số thứ hai và thay thế số lượng ký tự được chỉ định bởi đối số thứ ba. Truyền
#output: hello world!
267 cho đối số thứ ba của phương thức sẽ chèn chuỗi vào vị trí đã chỉ định mà không thay thế bất kỳ ký tự hiện có nào trong chuỗistrtolower[string]
308
#output: hello world!
848
#output: hello world!
Phương thức
#output: hello world!
848 thay thế nhiều giá trị trong chuỗi bằng cách sử dụng hàm
#output: hello world!
270 của PHPstrtolower[string]
309
#output: hello world!
851
#output: hello world!
Phương thức
#output: hello world!
851 chuyển chuỗi đến bao đóng đã cho, cho phép bạn kiểm tra và tương tác với chuỗi trong khi không ảnh hưởng đến chính chuỗi đó. Chuỗi ban đầu được trả về bằng phương thức
#output: hello world!
851 bất kể giá trị trả về của bao đóng là gìstrtolower[string]
310
#output: hello world!
854
#output: hello world!
Phương thức
#output: hello world!
854 xác định xem một chuỗi có khớp với mẫu biểu thức chính quy đã cho hay khôngstrtolower[string]
311
#output: hello world!
856
#output: hello world!
Phương thức
#output: hello world!
856 chuyển đổi chuỗi đã cho thành
#output: hello world!
273strtolower[string]
312
#output: hello world!
859
#output: hello world!
Phương thức
#output: hello world!
859 cắt chuỗi đã chostrtolower[string]
313
#output: hello world!
861
#output: hello world!
Phương thức
#output: hello world!
861 trả về chuỗi đã cho với ký tự đầu tiên được viết hoastrtolower[string]
314
#output: hello world!
863
#output: hello world!
Phương thức
#output: hello world!
863 tách chuỗi đã cho thành một tập hợp bằng các ký tự viết hoastrtolower[string]
315
#output: hello world!
865
#output: hello world!
Phương thức
#output: hello world!
865 chuyển đổi chuỗi đã cho thành chữ hoastrtolower[string]
316
#output: hello world!
867
#output: hello world!
Phương thức
#output: hello world!
867 gọi bao đóng đã cho nếu điều kiện đã cho là use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
42. Việc đóng cửa sẽ nhận được thể hiện chuỗi thông thạostrtolower[string]
317Nếu cần, bạn có thể chuyển một bao đóng khác làm tham số thứ ba cho phương thức
#output: hello world!
867. Việc đóng này sẽ thực thi nếu tham số điều kiện ước tính là use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
98
#output: hello world!
872
#output: hello world!
Phương thức
#output: hello world!
872 gọi bao đóng đã cho nếu chuỗi chứa giá trị đã cho. Việc đóng cửa sẽ nhận được thể hiện chuỗi thông thạostrtolower[string]
318Nếu cần, bạn có thể chuyển một bao đóng khác làm tham số thứ ba cho phương thức
#output: hello world!
867. Việc đóng này sẽ thực hiện nếu chuỗi không chứa giá trị đã choYou may also pass an array of values to determine if the given string contains any of the values in the array
strtolower[string]
319
#output: hello world!
875
#output: hello world!
Phương thức
#output: hello world!
875 gọi bao đóng đã cho nếu chuỗi chứa tất cả các chuỗi con đã cho. Việc đóng cửa sẽ nhận được thể hiện chuỗi thông thạostrtolower[string]
320Nếu cần, bạn có thể chuyển một bao đóng khác làm tham số thứ ba cho phương thức
#output: hello world!
867. Việc đóng này sẽ thực thi nếu tham số điều kiện ước tính là use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
98
#output: hello world!
879
#output: hello world!
The
#output: hello world!
879 method invokes the given closure if the string is empty. If the closure returns a value, that value will also be returned by the
#output: hello world!
879 method. If the closure does not return a value, the fluent string instance will be returnedstrtolower[string]
321
#output: hello world!
882
#output: hello world!
The
#output: hello world!
882 method invokes the given closure if the string is not empty. If the closure returns a value, that value will also be returned by the
#output: hello world!
882 method. If the closure does not return a value, the fluent string instance will be returnedstrtolower[string]
322
#output: hello world!
885
#output: hello world!
The
#output: hello world!
885 method invokes the given closure if the string starts with the given sub-string. The closure will receive the fluent string instancestrtolower[string]
323
#output: hello world!
887
#output: hello world!
The
#output: hello world!
887 method invokes the given closure if the string ends with the given sub-string. The closure will receive the fluent string instancestrtolower[string]
324
#output: hello world!
889
#output: hello world!
The
#output: hello world!
889 method invokes the given closure if the string exactly matches the given string. The closure will receive the fluent string instancestrtolower[string]
325
#output: hello world!
891
#output: hello world!
The
#output: hello world!
891 method invokes the given closure if the string does not exactly match the given string. The closure will receive the fluent string instancestrtolower[string]
326
#output: hello world!
893
#output: hello world!
The
#output: hello world!
893 method invokes the given closure if the string matches a given pattern. Asterisks may be used as wildcard values. The closure will receive the fluent string instancestrtolower[string]
327
#output: hello world!
895
#output: hello world!
The
#output: hello world!
895 method invokes the given closure if the string is 7 bit ASCII. The closure will receive the fluent string instancestrtolower[string]
328
#output: hello world!
897
#output: hello world!
The
#output: hello world!
897 method invokes the given closure if the string is a valid ULID. The closure will receive the fluent string instancestrtolower[string]
329
#output: hello world!
899
#output: hello world!
The
#output: hello world!
899 method invokes the given closure if the string is a valid UUID. The closure will receive the fluent string instancestrtolower[string]
330
#output: բարեւ աշխարհ!
101
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
101 method invokes the given closure if the string matches the given regular expression. The closure will receive the fluent string instancestrtolower[string]
331
#output: բարեւ աշխարհ!
103
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
103 method returns the number of words that a string containsstrtolower[string]
332
#output: բարեւ աշխարհ!
105
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
105 method limits the number of words in a string. If necessary, you may specify an additional string that will be appended to the truncated stringstrtolower[string]
333URL
#output: բարեւ աշխարհ!
107
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
108 function generates a URL for the given controller actionstrtolower[string]
334If the method accepts route parameters, you may pass them as the second argument to the method
strtolower[string]
335
#output: բարեւ աշխարհ!
109
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
110 function generates a URL for an asset using the current scheme of the request [HTTP or HTTPS]strtolower[string]
336You can configure the asset URL host by setting the
#output: բարեւ աշխարհ!
111 variable in your
#output: բարեւ աշխարհ!
112 file. This can be useful if you host your assets on an external service like Amazon S3 or another CDNstrtolower[string]
337
#output: բարեւ աշխարհ!
113
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
114 function generates a URL for a given named routestrtolower[string]
338If the route accepts parameters, you may pass them as the second argument to the function
strtolower[string]
339By default, the
#output: բարեւ աշխարհ!
114 function generates an absolute URL. If you wish to generate a relative URL, you may pass use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
98 as the third argument to the functionstrtolower[string]
340
#output: բարեւ աշխարհ!
117
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
118 function generates a URL for an asset using HTTPSstrtolower[string]
341
#output: բարեւ աշխարհ!
119
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
120 function generates a fully qualified HTTPS URL to the given path. Additional URL segments may be passed in the function's second argumentstrtolower[string]
342
#output: բարեւ աշխարհ!
121
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
122 function generates a redirect HTTP response for a given named routestrtolower[string]
343If necessary, you may pass the HTTP status code that should be assigned to the redirect and any additional response headers as the third and fourth arguments to the
#output: բարեւ աշխարհ!
122 methodstrtolower[string]
344
#output: բարեւ աշխարհ!
124
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
125 function generates a fully qualified URL to the given pathstrtolower[string]
345If no path is provided, an
#output: բարեւ աշխարհ!
126 instance is returnedstrtolower[string]
346Điều khoản khác
#output: բարեւ աշխարհ!
127
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
128 function throws an HTTP exception which will be rendered by the exception handlerYou may also provide the exception's message and custom HTTP response headers that should be sent to the browser
strtolower[string]
347
#output: բարեւ աշխարհ!
129
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
130 function throws an HTTP exception if a given boolean expression evaluates to use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
42strtolower[string]
348Like the
#output: բարեւ աշխարհ!
128 method, you may also provide the exception's response text as the third argument and an array of custom response headers as the fourth argument to the function
#output: բարեւ աշխարհ!
133
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
134 function throws an HTTP exception if a given boolean expression evaluates to use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
98strtolower[string]
349Like the
#output: բարեւ աշխարհ!
128 method, you may also provide the exception's response text as the third argument and an array of custom response headers as the fourth argument to the function
#output: բարեւ աշխարհ!
137
#output: բարեւ աշխարհ!
The
strtolower[string]
905 function returns the service container instanceYou may pass a class or interface name to resolve it from the container
strtolower[string]
350
#output: բարեւ աշխարհ!
139
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
140 function returns an authenticator instance. You may use it as an alternative to the
#output: բարեւ աշխարհ!
141 facadeIf needed, you may specify which guard instance you would like to access
strtolower[string]
351
#output: բարեւ աշխարհ!
142
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
143 function generates a redirect HTTP response to the user's previous locationstrtolower[string]
352
#output: բարեւ աշխարհ!
144
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
145 function hashes the given value using Bcrypt. You may use this function as an alternative to the
#output: բարեւ աշխարհ!
146 facadestrtolower[string]
353
#output: բարեւ աշխարհ!
147
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
148 function determines whether the given value is "blank"For the inverse of
#output: բարեւ աշխարհ!
148, see the
#output: բարեւ աշխարհ!
150 method
#output: բարեւ աշխարհ!
151
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
152 function broadcasts the given event to its listenersstrtolower[string]
354
#output: բարեւ աշխարհ!
153
#output: բարեւ աշխարհ!
The
#output: բարեւ աշխարհ!
154 function may be used to get values from the cache. If the given key does not exist in the cache, an optional default value will be returnedstrtolower[string]
355You may add items to the cache by passing an array of key / value pairs to the function. Bạn cũng nên chuyển số giây hoặc thời lượng mà giá trị được lưu trong bộ nhớ cache sẽ được coi là hợp lệ
strtolower[string]
356
#output: բարեւ աշխարհ!
155
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
156 trả về tất cả các đặc điểm được sử dụng bởi một lớp, bao gồm các đặc điểm được sử dụng bởi tất cả các lớp cha của nóstrtolower[string]
357
#output: բարեւ աշխարհ!
157
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
158 tạo một thể hiện tập hợp từ giá trị đã chostrtolower[string]
358
#output: բարեւ աշխարհ!
159
#output: բարեւ աշխարհ!
Hàm
strtolower[string]
912 nhận giá trị của một biến cấu hình. Các giá trị cấu hình có thể được truy cập bằng cú pháp "chấm", bao gồm tên của tệp và tùy chọn bạn muốn truy cập. Giá trị mặc định có thể được chỉ định và được trả về nếu tùy chọn cấu hình không tồn tạistrtolower[string]
359Bạn có thể đặt các biến cấu hình trong thời gian chạy bằng cách chuyển một mảng các cặp khóa/giá trị. Tuy nhiên, lưu ý rằng chức năng này chỉ ảnh hưởng đến giá trị cấu hình cho yêu cầu hiện tại và không cập nhật giá trị cấu hình thực tế của bạn
strtolower[string]
360
#output: բարեւ աշխարհ!
161
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
162 tạo một phiên bản cookie mớistrtolower[string]
361
#output: բարեւ աշխարհ!
163
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
164 tạo trường đầu vào HTML
#output: բարեւ աշխարհ!
165 chứa giá trị của mã thông báo CSRF. Ví dụ: sử dụng cú pháp Blade
#output: բարեւ աշխարհ!
166
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
167 lấy giá trị của CSRF token hiện tại
#output: բարեւ աշխարհ!
168
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
169 giải mã giá trị đã cho. Bạn có thể sử dụng chức năng này thay thế cho mặt tiền
#output: բարեւ աշխարհ!
170strtolower[string]
362
#output: բարեւ աշխարհ!
171
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
172 kết xuất các biến đã cho và kết thúc thực thi tập lệnhstrtolower[string]
363Nếu bạn không muốn tạm dừng thực thi tập lệnh của mình, hãy sử dụng hàm
#output: բարեւ աշխարհ!
173 để thay thế
#output: բարեւ աշխարհ!
174
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
175 đẩy công việc đã cho vào hàng đợi công việc của Laravelstrtolower[string]
364
#output: բարեւ աշխարհ!
176
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
173 kết xuất các biến đã chostrtolower[string]
365Nếu bạn muốn dừng thực thi tập lệnh sau khi kết xuất các biến, hãy sử dụng hàm
#output: բարեւ աշխարհ!
172 để thay thế
#output: բարեւ աշխարհ!
179
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
180 mã hóa giá trị đã cho. Bạn có thể sử dụng chức năng này thay thế cho mặt tiền
#output: բարեւ աշխարհ!
170strtolower[string]
366
#output: բարեւ աշխարհ!
182
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
183 lấy giá trị của biến môi trường hoặc trả về giá trị mặc địnhstrtolower[string]
367Cảnh báo
Nếu bạn thực thi lệnh184 trong quá trình triển khai của mình, bạn nên đảm bảo rằng mình chỉ gọi hàm#output: բարեւ աշխարհ!
183 từ bên trong các tệp cấu hình của mình. Khi cấu hình đã được lưu vào bộ đệm, tệp#output: բարեւ աշխարհ!
112 sẽ không được tải và tất cả các lệnh gọi hàm#output: բարեւ աշխարհ!
183 sẽ trả về#output: բարեւ աշխարհ!
14.
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
#output: բարեւ աշխարհ!
189
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
190 gửi sự kiện đã cho đến người nghe của nóstrtolower[string]
368
#output: բարեւ աշխարհ!
191
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
192 giải quyết một Faker singleton từ vùng chứa, có thể hữu ích khi tạo dữ liệu giả trong các nhà máy mô hình, tạo cơ sở dữ liệu, thử nghiệm và chế độ xem nguyên mẫustrtolower[string]
369Theo mặc định, hàm
#output: բարեւ աշխարհ!
192 sẽ sử dụng tùy chọn cấu hình
#output: բարեւ աշխարհ!
194 trong tệp cấu hình
#output: բարեւ աշխարհ!
195 của bạn; . Mỗi ngôn ngữ sẽ giải quyết một singleton riêng lẻ
#output: բարեւ աշխարհ!
197
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
150 xác định xem giá trị đã cho không phải là "trống"Đối với nghịch đảo của
#output: բարեւ աշխարհ!
150, xem phương pháp
#output: բարեւ աշխարհ!
148
#output: բարեւ աշխարհ!
201
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
202 sẽ ghi thông tin vào nhật ký ứng dụng của bạnstrtolower[string]
370Một mảng dữ liệu theo ngữ cảnh cũng có thể được chuyển đến hàm
strtolower[string]
371
#output: բարեւ աշխարհ!
203
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
204 có thể được sử dụng để ghi thông báo cấp độ
#output: բարեւ աշխարհ!
205 vào nhật kýMột mảng dữ liệu theo ngữ cảnh cũng có thể được chuyển đến hàm
strtolower[string]
372Một phiên bản nhật ký sẽ được trả về nếu không có giá trị nào được chuyển đến hàm
strtolower[string]
373
#output: բարեւ աշխարհ!
206
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
207 tạo trường đầu vào HTML
#output: բարեւ աշխարհ!
165 chứa giá trị giả mạo của động từ HTTP của biểu mẫu. Ví dụ: sử dụng cú pháp Bladestrtolower[string]
374
#output: բարեւ աշխարհ!
209
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
210 tạo một phiên bản
#output: բարեւ աշխարհ!
211 mới cho thời điểm hiện tại
#output: բարեւ աշխարհ!
212
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
213 truy xuất giá trị đầu vào cũ được đưa vào phiênstrtolower[string]
375Vì "giá trị mặc định" được cung cấp làm đối số thứ hai cho hàm
#output: բարեւ աշխարհ!
213 thường là một thuộc tính của mô hình Eloquent, nên Laravel cho phép bạn chỉ cần chuyển toàn bộ mô hình Eloquent làm đối số thứ hai cho hàm
#output: բարեւ աշխարհ!
213. Khi làm như vậy, Laravel sẽ coi đối số đầu tiên được cung cấp cho hàm
#output: բարեւ աշխարհ!
213 là tên của thuộc tính Eloquent nên được coi là "giá trị mặc định"strtolower[string]
376
#output: բարեւ աշխարհ!
217
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
218 chấp nhận bất kỳ đối số nào và cho phép bạn truy cập các thuộc tính hoặc gọi các phương thức trên đối tượng đó. Nếu đối tượng đã cho là use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
14, các thuộc tính và phương thức sẽ trả về use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
14 thay vì gây ra lỗistrtolower[string]
377Hàm
#output: բարեւ աշխարհ!
218 cũng chấp nhận một bao đóng làm đối số thứ hai của nó. Việc đóng sẽ được gọi nếu giá trị được cung cấp làm đối số đầu tiên không phải là nullstrtolower[string]
378
#output: բարեւ աշխարհ!
222
#output: բարեւ աշխարհ!
Phương thức
#output: բարեւ աշխարհ!
223 truy xuất một thể hiện chính sách cho một lớp nhất địnhstrtolower[string]
379
#output: բարեւ աշխարհ!
224
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
225 trả về phản hồi HTTP chuyển hướng hoặc trả về phiên bản chuyển hướng nếu được gọi mà không có đối sốstrtolower[string]
380
#output: բարեւ աշխարհ!
226
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
227 sẽ báo cáo một ngoại lệ bằng cách sử dụng trình xử lý ngoại lệ của bạnHàm
#output: բարեւ աշխարհ!
227 cũng chấp nhận một chuỗi làm đối số. Khi một chuỗi được cấp cho hàm, hàm sẽ tạo một ngoại lệ với chuỗi đã cho làm thông báo của nóstrtolower[string]
381
#output: բարեւ աշխարհ!
229
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
230 sẽ báo cáo một ngoại lệ bằng cách sử dụng trình xử lý ngoại lệ của bạn nếu điều kiện đã cho là use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
42strtolower[string]
382
#output: բարեւ աշխարհ!
232
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
233 sẽ báo cáo một ngoại lệ bằng cách sử dụng trình xử lý ngoại lệ của bạn nếu điều kiện đã cho là use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
98strtolower[string]
383
#output: բարեւ աշխարհ!
235
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
236 trả về phiên bản yêu cầu hiện tại hoặc lấy giá trị của trường đầu vào từ yêu cầu hiện tạistrtolower[string]
384
#output: բարեւ աշխարհ!
237
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
238 thực thi bao đóng đã cho và bắt mọi ngoại lệ xảy ra trong quá trình thực thi. Tất cả các ngoại lệ bị bắt sẽ được gửi đến trình xử lý ngoại lệ của bạn; Bạn cũng có thể chuyển đối số thứ hai cho hàm
#output: բարեւ աշխարհ!
238. Đối số này sẽ là giá trị "mặc định" sẽ được trả về nếu xảy ra ngoại lệ trong khi thực hiện đóng
#output: բարեւ աշխարհ!
240
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
241 phân giải tên lớp hoặc giao diện đã cho thành một thể hiện bằng bộ chứa dịch vụstrtolower[string]
385
#output: բարեւ աշխարհ!
242
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
243 tạo một phiên bản phản hồi hoặc lấy một phiên bản của nhà máy phản hồistrtolower[string]
386
#output: բարեւ աշխարհ!
244
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
245 cố gắng thực hiện cuộc gọi lại đã cho cho đến khi đáp ứng ngưỡng lần thử tối đa nhất định. Nếu cuộc gọi lại không đưa ra một ngoại lệ, giá trị trả về của nó sẽ được trả lại. Nếu cuộc gọi lại ném một ngoại lệ, nó sẽ tự động được thử lại. Nếu vượt quá số lần thử tối đa, ngoại lệ sẽ bị némstrtolower[string]
387Nếu bạn muốn tính số mili giây để ngủ giữa các lần thử theo cách thủ công, bạn có thể chuyển một lần đóng làm đối số thứ ba cho hàm
#output: բարեւ աշխարհ!
245strtolower[string]
388Để thuận tiện, bạn có thể cung cấp một mảng làm đối số đầu tiên cho hàm
#output: բարեւ աշխարհ!
245. Mảng này sẽ được sử dụng để xác định có bao nhiêu mili giây để ngủ giữa các lần thử tiếp theostrtolower[string]
389Để chỉ thử lại trong các điều kiện cụ thể, bạn có thể chuyển một bao đóng làm đối số thứ tư cho hàm
#output: բարեւ աշխարհ!
245strtolower[string]
390
#output: բարեւ աշխարհ!
249
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
250 có thể được sử dụng để nhận hoặc đặt giá trị phiênBạn có thể đặt giá trị bằng cách chuyển một mảng các cặp khóa/giá trị cho hàm
strtolower[string]
391Lưu trữ phiên sẽ được trả về nếu không có giá trị nào được chuyển đến hàm
strtolower[string]
392
#output: բարեւ աշխարհ!
251
#output: բարեւ աշխարհ!
Hàm
#output: hello world!
851 chấp nhận hai đối số. một
#output: բարեւ աշխարհ!
253 tùy ý và một đóng cửa.
#output: բարեւ աշխարհ!
253 sẽ được chuyển đến bao đóng và sau đó được trả về bởi hàm
#output: hello world!
851. Giá trị trả về của bao đóng không liên quanstrtolower[string]
393Nếu không có bao đóng nào được chuyển đến hàm
#output: hello world!
851, bạn có thể gọi bất kỳ phương thức nào trên
#output: բարեւ աշխարհ!
253 đã cho. Giá trị trả về của phương thức bạn gọi sẽ luôn là
#output: բարեւ աշխարհ!
253, bất kể phương thức đó thực sự trả về giá trị gì trong định nghĩa của nó. Ví dụ: phương thức Eloquent
#output: բարեւ աշխարհ!
259 thường trả về một số nguyên. Tuy nhiên, chúng ta có thể buộc phương thức trả về chính mô hình đó bằng cách xâu chuỗi lời gọi phương thức
#output: բարեւ աշխարհ!
259 thông qua hàm
#output: hello world!
851strtolower[string]
394Để thêm phương thức
#output: hello world!
851 vào lớp, bạn có thể thêm đặc điểm
#output: բարեւ աշխարհ!
263 vào lớp. Phương pháp
#output: hello world!
851 của đặc điểm này chấp nhận Đóng làm đối số duy nhất của nó. Bản thân đối tượng sẽ được chuyển đến Closure và sau đó được trả về bằng phương thức
#output: hello world!
851strtolower[string]
395
#output: բարեւ աշխարհ!
266
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
267 đưa ra ngoại lệ đã cho nếu một biểu thức boolean đã cho có giá trị là use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
42strtolower[string]
396
#output: բարեւ աշխարհ!
269
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
270 đưa ra ngoại lệ đã cho nếu một biểu thức boolean đã cho có giá trị là use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
98strtolower[string]
397
#output: բարեւ աշխարհ!
272
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
273 tạo một phiên bản
#output: բարեւ աշխարհ!
211 mới cho ngày hiện tại
#output: բարեւ աշխարհ!
275
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
276 trả về tất cả các đặc điểm được sử dụng bởi một đặc điểmstrtolower[string]
398
#output: բարեւ աշխարհ!
277
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
278 thực thi một bao đóng trên một giá trị đã cho nếu giá trị đó không trống và sau đó trả về giá trị trả về của bao đóngstrtolower[string]
399Giá trị mặc định hoặc bao đóng có thể được chuyển làm đối số thứ ba cho hàm. Giá trị này sẽ được trả về nếu giá trị đã cho trống
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
00
#output: բարեւ աշխարհ!
279
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
280 tạo một phiên bản trình xác thực mới với các đối số đã cho. Bạn có thể sử dụng nó thay thế cho mặt tiền
#output: բարեւ աշխարհ!
281use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
01
#output: բարեւ աշխարհ!
282
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
283 trả về giá trị được cung cấp. Tuy nhiên, nếu bạn chuyển một bao đóng cho hàm, bao đóng sẽ được thực thi và giá trị trả về của nó sẽ được trả vềuse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
02
#output: բարեւ աշխարհ!
284
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
285 truy xuất một thể hiện dạng xemuse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
03
#output: բարեւ աշխարհ!
286
#output: բարեւ աշխարհ!
Hàm
#output: բարեւ աշխարհ!
287 trả về giá trị được cung cấp. Nếu một bao đóng được truyền dưới dạng đối số thứ hai cho hàm, bao đóng sẽ được thực thi và giá trị trả về của nó sẽ được trả vềuse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
04Tiện ích khác
điểm chuẩn
Đôi khi bạn có thể muốn kiểm tra nhanh hiệu suất của một số phần nhất định trong ứng dụng của mình. Trong những trường hợp đó, bạn có thể sử dụng lớp hỗ trợ
#output: բարեւ աշխարհ!
288 để đo số mili giây cần thiết để hoàn tất các lệnh gọi lại đã chouse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
05Theo mặc định, các cuộc gọi lại đã cho sẽ được thực hiện một lần [một lần lặp] và thời lượng của chúng sẽ được hiển thị trong trình duyệt/bảng điều khiển
Để gọi một cuộc gọi lại nhiều lần, bạn có thể chỉ định số lần lặp mà cuộc gọi lại sẽ được gọi làm đối số thứ hai cho phương thức. Khi thực hiện gọi lại nhiều lần, lớp
#output: բարեւ աշխարհ!
288 sẽ trả về số mili giây trung bình cần để thực hiện gọi lại trên tất cả các lần lặpuse Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
06Vé số
Lớp rút thăm của Laravel có thể được sử dụng để thực hiện các cuộc gọi lại dựa trên một tập hợp các tỷ lệ cược nhất định. Điều này có thể đặc biệt hữu ích khi bạn chỉ muốn thực thi mã cho một tỷ lệ phần trăm các yêu cầu đến của mình
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
07Bạn có thể kết hợp lớp xổ số của Laravel với các tính năng khác của Laravel. Ví dụ: bạn có thể chỉ muốn báo cáo một tỷ lệ phần trăm nhỏ các truy vấn chậm cho trình xử lý ngoại lệ của mình. Và, vì lớp xổ số có thể gọi được, chúng tôi có thể chuyển một thể hiện của lớp vào bất kỳ phương thức nào chấp nhận có thể gọi được
use Illuminate\Support\Arr;
$matrix = Arr::crossJoin[[1, 2], ['a', 'b']];
$matrix = Arr::crossJoin[[1, 2], ['a', 'b'], ['I', 'II']];
08Xổ số thử nghiệm
Laravel cung cấp một số phương thức đơn giản để cho phép bạn dễ dàng kiểm tra các yêu cầu xổ số của ứng dụng của mình