Hướng dẫn identifiers in php - định danh trong php

Một chuỗi là loạt các ký tự, trong đó một ký tự giống như một byte. Điều này có nghĩa là PHP chỉ hỗ trợ bộ 256 ký tự và do đó không cung cấp hỗ trợ Unicode gốc. Xem chi tiết của loại chuỗi.string is series of characters, where a character is the same as a byte. This means that PHP only supports a 256-character set, and hence does not offer native Unicode support. See details of the string type.

Lưu ý: Trên các bản dựng 32 bit, một chuỗi có thể lớn lên tới 2GB (2147483647 BYTE TỐI ĐỘ): On 32-bit builds, a string can be as large as up to 2GB (2147483647 bytes maximum)

Cú pháp

Một chuỗi chữ có thể được chỉ định theo bốn cách khác nhau:string literal can be specified in four different ways:

  • được trích dẫn đơn
  • Double Trích dẫn
  • HEREDOC Cú pháp
  • Cú pháp NowDoc

Được trích dẫn đơn

Cách đơn giản nhất để chỉ định một chuỗi là đặt nó trong các trích dẫn đơn (ký tự

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
1).string is to enclose it in single quotes (the character
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
1).

Để chỉ định một trích dẫn đơn theo nghĩa đen, hãy thoát nó bằng một dấu gạch chéo ngược (

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
2). Để chỉ định một dấu gạch chéo ngược theo nghĩa đen, nhân đôi nó (
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
3). Tất cả các trường hợp khác của dấu gạch chéo ngược sẽ được coi là một dấu gạch chéo ngược theo nghĩa đen: điều này có nghĩa là các chuỗi thoát khác mà bạn có thể được sử dụng, chẳng hạn như
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
4 hoặc
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
5, sẽ được đầu ra theo nghĩa đen theo nghĩa đen thay vì có bất kỳ ý nghĩa đặc biệt nào.

Lưu ý: Không giống như các cú pháp, các biến và trình tự thoát được trích dẫn kép và heredoc cho các ký tự đặc biệt sẽ không được mở rộng khi chúng xảy ra trong các chuỗi được trích dẫn đơn.: Unlike the double-quoted and heredoc syntaxes, variables and escape sequences for special characters will not be expanded when they occur in single quoted strings.

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
6

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
7

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
8

Double Trích dẫn

Nếu chuỗi được đặt trong các trình điều khiển kép ("), PHP sẽ diễn giải các chuỗi thoát sau đây cho các ký tự đặc biệt:string is enclosed in double-quotes ("), PHP will interpret the following escape sequences for special characters:

Những nhân vật đã trốn thoát
Sự phối hợpNghĩa
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
5
LineFeed (LF hoặc 0x0a (10) trong ASCII)
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
4
Trở lại vận chuyển (CR hoặc 0x0D (13) trong ASCII)
array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
1
Tab ngang (HT hoặc 0x09 (9) trong ASCII)
array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
2
Tab dọc (VT hoặc 0x0b (11) trong ASCII)
array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
3
Escape (ESC hoặc 0x1B (27) trong ASCII)
array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
4
Form Feed (FF hoặc 0x0C (12) trong ASCII)
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
3
dấu vết chéo ngược
array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
6
ký hiệu đô la
array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
7
kép
array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
8
Trình tự các ký tự khớp với biểu thức chính quy là một ký tự trong ký hiệu bát phân, âm thầm tràn để phù hợp với byte (ví dụ: "\ 400" === "\ 000")
array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
9
Trình tự các ký tự phù hợp với biểu thức chính quy là một ký tự trong ký hiệu thập lục phân
PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6
0
Trình tự các ký tự khớp với biểu thức chính quy là một CodePoint Unicode, sẽ được xuất vào chuỗi khi biểu diễn UTF-8 của CodePoint đó

Như trong các chuỗi được trích dẫn duy nhất, việc thoát khỏi bất kỳ nhân vật nào khác cũng sẽ dẫn đến dấu gạch chéo ngược cũng được in.strings, escaping any other character will result in the backslash being printed too.

Tính năng quan trọng nhất của các chuỗi được trích dẫn kép là thực tế là các tên biến sẽ được mở rộng. Xem phân tích cú pháp chuỗi để biết chi tiết.strings is the fact that variable names will be expanded. See string parsing for details.

Heredoc

Cách thứ ba để phân định chuỗi là cú pháp Heredoc:

PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6
1. Sau khi vận hành này, một định danh được cung cấp, sau đó là một dòng mới. Bản thân chuỗi theo sau, và sau đó cùng một định danh một lần nữa để đóng trích dẫn.strings is the heredoc syntax:
PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6
1. After this operator, an identifier is provided, then a newline. The string itself follows, and then the same identifier again to close the quotation.

Định danh đóng có thể được thụt vào không gian hoặc tab, trong trường hợp đó, thụt lề sẽ bị tước khỏi tất cả các dòng trong chuỗi Doc. Trước PHP 7.3.0, mã định danh đóng phải bắt đầu trong cột đầu tiên của dòng.

Ngoài ra, mã định danh đóng phải tuân theo các quy tắc đặt tên giống như bất kỳ nhãn nào khác trong PHP: nó chỉ chứa các ký tự chữ và số và gạch dưới, và phải bắt đầu với ký tự không chữ số hoặc dấu gạch dưới.

Ví dụ #1 Ví dụ về Heredoc cơ bản kể từ Php 7.3.0

PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6
2

Đầu ra của ví dụ trên trong Php 7.3:

Nếu mã định danh đóng được thụt vào hơn bất kỳ dòng nào của cơ thể, thì sẽ bị ném parseerror:ParseError will be thrown:

Ví dụ #2 Định danh đóng không được thụt vào nhiều hơn bất kỳ dòng nào của cơ thể

PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6
3

Đầu ra của ví dụ trên trong Php 7.3:

PHP Parse error:  Invalid body indentation level (expecting an indentation level of at least 3) in example.php on line 4

Nếu mã định danh đóng được thụt vào hơn bất kỳ dòng nào của cơ thể, thì sẽ bị ném parseerror:ParseError will be thrown. These whitespace constraints have been included because mixing tabs and spaces for indentation is harmful to legibility.

Ví dụ #2 Định danh đóng không được thụt vào nhiều hơn bất kỳ dòng nào của cơ thể

PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6
4

PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6
5

Tuy nhiên, nếu định danh đóng được thụt vào, các tab cũng có thể được sử dụng, tuy nhiên, các tab và khoảng trống không được kết hợp liên quan đến việc thụt vào định danh đóng và thụt của cơ thể (lên đến định danh đóng). Trong bất kỳ trường hợp nào trong số này, một người sinh viên sẽ bị ném. Những ràng buộc khoảng trắng này đã được đưa vào vì trộn các tab và không gian để thụt vào có hại cho tính dễ đọc.

Đầu ra của ví dụ trên trong Php 7.3:

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8

Nếu mã định danh đóng được thụt vào hơn bất kỳ dòng nào của cơ thể, thì sẽ bị ném parseerror:

Ví dụ #2 Định danh đóng không được thụt vào nhiều hơn bất kỳ dòng nào của cơ thể

PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6
7

Đầu ra của ví dụ trên trong Php 7.3:

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}

Nếu mã định danh đóng được thụt vào hơn bất kỳ dòng nào của cơ thể, thì sẽ bị ném parseerror:

Ví dụ #2 Định danh đóng không được thụt vào nhiều hơn bất kỳ dòng nào của cơ thểParseError.

Tuy nhiên, nếu định danh đóng được thụt vào, các tab cũng có thể được sử dụng, tuy nhiên, các tab và khoảng trống không được kết hợp liên quan đến việc thụt vào định danh đóng và thụt của cơ thể (lên đến định danh đóng). Trong bất kỳ trường hợp nào trong số này, một người sinh viên sẽ bị ném. Những ràng buộc khoảng trắng này đã được đưa vào vì trộn các tab và không gian để thụt vào có hại cho tính dễ đọc.

PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6
8

Đầu ra của ví dụ trên trong Php 7.3:

PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6

Để tránh vấn đề này, bạn có thể tuân theo quy tắc đơn giản: không chọn định danh đóng xuất hiện trong phần thân của văn bản.

Cảnh báo

Trước PHP 7.3.0, điều rất quan trọng cần lưu ý là dòng có định danh đóng phải chứa các ký tự khác, ngoại trừ dấu chấm phẩy (

PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6
9). Điều đó có nghĩa là đặc biệt là định danh có thể không được thụt vào và có thể không có bất kỳ khoảng trống hoặc tab nào trước hoặc sau dấu chấm phẩy. Điều quan trọng nữa là nhận ra rằng ký tự đầu tiên trước khi định danh đóng phải là một dòng mới theo định nghĩa của hệ điều hành cục bộ. Đây là
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
5 trên các hệ thống UNIX, bao gồm cả macOS. DELIMITER đóng cũng phải được theo sau bởi một dòng mới.

Nếu quy tắc này bị phá vỡ và định danh đóng không "sạch", nó sẽ không được coi là một định danh đóng và PHP sẽ tiếp tục tìm kiếm một định danh. Nếu không tìm thấy mã định danh đóng thích hợp trước khi kết thúc tệp hiện tại, lỗi phân tích cú pháp sẽ dẫn đến dòng cuối cùng.

Ví dụ #6 Ví dụ không hợp lệ, trước Php 7.3.0

My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A
1

Ví dụ #7 Ví dụ hợp lệ, ngay cả khi trước PHP 7.3.0

My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A
2

Heredocs chứa các biến không thể được sử dụng để khởi tạo các thuộc tính lớp.

Văn bản Heredoc hoạt động giống như một chuỗi được trích dẫn kép, không có trích dẫn kép. Điều này có nghĩa là các trích dẫn trong Heredoc không cần phải thoát ra, nhưng các mã thoát được liệt kê ở trên vẫn có thể được sử dụng. Các biến được mở rộng, nhưng phải cẩn thận khi biểu thị các biến phức tạp bên trong heredoc như với các chuỗi.string, without the double quotes. This means that quotes in a heredoc do not need to be escaped, but the escape codes listed above can still be used. Variables are expanded, but the same care must be taken when expressing complex variables inside a heredoc as with strings.

Ví dụ #8 ví dụ về chuỗi heredoc trích dẫn

My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A
3

My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A
4

My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A
5

Ví dụ trên sẽ xuất ra:

My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A

Cũng có thể sử dụng cú pháp HEREDOC để truyền dữ liệu cho các đối số chức năng:

Ví dụ #9 heredoc trong ví dụ đối số

My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A
6

Có thể khởi tạo các biến tĩnh và thuộc tính lớp/hằng số bằng cú pháp Heredoc:

Ví dụ #10 Sử dụng Heredoc để khởi tạo các giá trị tĩnh

My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A
7

My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A
8

My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A
9

Định danh HEREDOC mở có thể tùy chọn được đặt trong các trích dẫn kép:

Ví dụ #11 Sử dụng trích dẫn kép trong Heredoc

Example of string spanning multiple lines
using nowdoc syntax. Backslashes are always treated literally,
e.g. \\ and \'.
0

Nowdoc

NowDocs là các chuỗi được trích xuất một lần mà Heredocs là các chuỗi được trích dẫn kép. Một nowDoc được chỉ định tương tự như Heredoc, nhưng không có phân tích cú pháp nào được thực hiện bên trong một nowDoc. Cấu trúc là lý tưởng để nhúng mã PHP hoặc các khối văn bản lớn khác mà không cần phải trốn thoát. Nó chia sẻ một số tính năng chung với cấu trúc SGML

Example of string spanning multiple lines
using nowdoc syntax. Backslashes are always treated literally,
e.g. \\ and \'.
1, trong đó nó tuyên bố một khối văn bản không dành cho phân tích cú pháp.

Một nowDoc được xác định với cùng một trình tự

PHP Parse error:  syntax error, unexpected identifier "ING", expecting "]" in example.php on line 6
1 được sử dụng cho Heredocs, nhưng số nhận dạng sau đây được đặt trong các trích dẫn đơn, ví dụ:
Example of string spanning multiple lines
using nowdoc syntax. Backslashes are always treated literally,
e.g. \\ and \'.
3. Tất cả các quy tắc cho số nhận dạng Heredoc cũng áp dụng cho các định danh NowDoc, đặc biệt là các quy tắc liên quan đến sự xuất hiện của số nhận dạng đóng.

Ví dụ #12 NowDoc Chuỗi trích dẫn ví dụ

Example of string spanning multiple lines
using nowdoc syntax. Backslashes are always treated literally,
e.g. \\ and \'.
4

Ví dụ trên sẽ xuất ra:

Example of string spanning multiple lines
using nowdoc syntax. Backslashes are always treated literally,
e.g. \\ and \'.

Cũng có thể sử dụng cú pháp HEREDOC để truyền dữ liệu cho các đối số chức năng:

Example of string spanning multiple lines
using nowdoc syntax. Backslashes are always treated literally,
e.g. \\ and \'.
5

My name is "MyName". I am printing some Foo.
Now, I am printing some Bar2.
This should print a capital 'A': A
4

Example of string spanning multiple lines
using nowdoc syntax. Backslashes are always treated literally,
e.g. \\ and \'.
7

Ví dụ trên sẽ xuất ra:

My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41

Cũng có thể sử dụng cú pháp HEREDOC để truyền dữ liệu cho các đối số chức năng:

Example of string spanning multiple lines
using nowdoc syntax. Backslashes are always treated literally,
e.g. \\ and \'.
8

Ví dụ #9 heredoc trong ví dụ đối số

Có thể khởi tạo các biến tĩnh và thuộc tính lớp/hằng số bằng cú pháp Heredoc:string is specified in double quotes or with heredoc, variables are parsed within it.

Ví dụ #10 Sử dụng Heredoc để khởi tạo các giá trị tĩnharray value, or an object property in a string with a minimum of effort.

Định danh HEREDOC mở có thể tùy chọn được đặt trong các trích dẫn kép:

Ví dụ #11 Sử dụng trích dẫn kép trong Heredoc

Nowdoc

My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41
0

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
7

My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41
2

Ví dụ trên sẽ xuất ra:

He drank some apple juice.
He drank some juice made of .
He drank some juice made of apples.

Cũng có thể sử dụng cú pháp HEREDOC để truyền dữ liệu cho các đối số chức năng:array index or an object property can be parsed. With array indices, the closing square bracket (

My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41
3) marks the end of the index. The same rules apply to object properties as to simple variables.

Ví dụ #9 heredoc trong ví dụ đối số

My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41
4

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
7

My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41
6

Ví dụ trên sẽ xuất ra:

He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .

Cũng có thể sử dụng cú pháp HEREDOC để truyền dữ liệu cho các đối số chức năng:

Ví dụ #9 heredoc trong ví dụ đối số

My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41
7

Ví dụ trên sẽ xuất ra:

The character at index -2 is n.
Changing the character at index -3 to o gives strong.

Cũng có thể sử dụng cú pháp HEREDOC để truyền dữ liệu cho các đối số chức năng:

Ví dụ #9 heredoc trong ví dụ đối số

Có thể khởi tạo các biến tĩnh và thuộc tính lớp/hằng số bằng cú pháp Heredoc:

Ví dụ #10 Sử dụng Heredoc để khởi tạo các giá trị tĩnhstring representation can be included via this syntax. The expression is written the same way as it would appear outside the string, and then wrapped in

My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41
8 and
My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41
9. Since
My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41
8 can not be escaped, this syntax will only be recognised when the
Example of string spanning multiple lines
using nowdoc syntax. Backslashes are always treated literally,
e.g. \\ and \'.
9 immediately follows the
My name is "$name". I am printing some $foo->foo.
Now, I am printing some {$foo->bar[1]}.
This should not print a capital 'A': \x41
8. Use
He drank some apple juice.
He drank some juice made of .
He drank some juice made of apples.
3 to get a literal
He drank some apple juice.
He drank some juice made of .
He drank some juice made of apples.
4. Some examples to make it clear:

He drank some apple juice.
He drank some juice made of .
He drank some juice made of apples.
5

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
7

He drank some apple juice.
He drank some juice made of .
He drank some juice made of apples.
7

Cũng có thể truy cập các thuộc tính lớp bằng cách sử dụng các biến trong các chuỗi bằng cú pháp này.

He drank some apple juice.
He drank some juice made of .
He drank some juice made of apples.
8

Ví dụ trên sẽ xuất ra:

Ghi chú::

Giá trị được truy cập từ các hàm, cuộc gọi phương thức, biến lớp tĩnh và hằng số lớp bên trong

He drank some apple juice.
He drank some juice made of .
He drank some juice made of apples.
9 sẽ được hiểu là tên của một biến trong phạm vi mà chuỗi được xác định. Sử dụng niềng răng xoăn đơn (
He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
0) sẽ không hoạt động để truy cập các giá trị trả về của các hàm hoặc phương thức hoặc các giá trị của hằng số lớp hoặc biến lớp tĩnh.

He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
1

He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
2

He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
3

Truy cập và sửa đổi chuỗi theo ký tự

Các ký tự trong các chuỗi có thể được truy cập và sửa đổi bằng cách chỉ định độ lệch dựa trên 0 của ký tự mong muốn sau chuỗi sử dụng khung mảng vuông, như trong $ str [42]. Hãy nghĩ về một chuỗi như một mảng các ký tự cho mục đích này. Có thể sử dụng các hàm Subr () và Subr_Replace () khi bạn muốn trích xuất hoặc thay thế nhiều hơn 1 ký tự.strings may be accessed and modified by specifying the zero-based offset of the desired character after the string using square array brackets, as in $str[42]. Think of a string as an array of characters for this purpose. The functions substr() and substr_replace() can be used when you want to extract or replace more than 1 character.

Lưu ý: Kể từ Php 7.1.0, độ lệch chuỗi âm cũng được hỗ trợ. Chúng chỉ định độ lệch từ cuối chuỗi. Trước đây, độ lệch âm phát ra

He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
4 để đọc (mang lại một chuỗi trống) và
He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
5 để viết (khiến chuỗi không bị ảnh hưởng).
: As of PHP 7.1.0, negative string offsets are also supported. These specify the offset from the end of the string. Formerly, negative offsets emitted
He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
4
for reading (yielding an empty string) and
He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
5
for writing (leaving the string untouched).

Lưu ý: Trước Php 8.0.0, các chuỗi cũng có thể được truy cập bằng niềng răng, như trong $ str {42}, cho cùng một mục đích. Cú pháp nẹp xoăn này đã được dùng hết là Php 7.4.0 và không còn được hỗ trợ kể từ Php 8.0.0.: Prior to PHP 8.0.0, strings could also be accessed using braces, as in $str{42}, for the same purpose. This curly brace syntax was deprecated as of PHP 7.4.0 and no longer supported as of PHP 8.0.0.

Cảnh báo

Viết vào một miếng đệm ngoài phạm vi Chuỗi với khoảng trắng. Các loại không số nguyên được chuyển đổi thành số nguyên. Loại bù bất hợp pháp phát ra

He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
5. Chỉ có ký tự đầu tiên của chuỗi được gán được sử dụng. Kể từ Php 7.1.0, việc gán một chuỗi trống ném một lỗi nghiêm trọng. Trước đây, nó đã chỉ định một byte null.
He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
5
. Only the first character of an assigned string is used. As of PHP 7.1.0, assigning an empty string throws a fatal error. Formerly, it assigned a NULL byte.

Cảnh báo

Viết vào một miếng đệm ngoài phạm vi Chuỗi với khoảng trắng. Các loại không số nguyên được chuyển đổi thành số nguyên. Loại bù bất hợp pháp phát ra

He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
5. Chỉ có ký tự đầu tiên của chuỗi được gán được sử dụng. Kể từ Php 7.1.0, việc gán một chuỗi trống ném một lỗi nghiêm trọng. Trước đây, nó đã chỉ định một byte null.

Trong nội bộ, chuỗi PHP là mảng byte. Do đó, việc truy cập hoặc sửa đổi một chuỗi bằng cách sử dụng khung mảng không an toàn nhiều byte và chỉ nên được thực hiện với các chuỗi trong mã hóa một byte như ISO-8859-1.: As of PHP 7.1.0, applying the empty index operator on an empty string throws a fatal error. Formerly, the empty string was silently converted to an array.

Lưu ý: Kể từ Php 7.1.0, việc áp dụng toán tử chỉ mục trống trên một chuỗi trống ném một lỗi nghiêm trọng. Trước đây, chuỗi trống được chuyển đổi âm thầm thành một mảng.

He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
7

Ví dụ #17 Một số ví dụ chuỗi

Các độ lệch chuỗi phải là số nguyên hoặc các chuỗi giống như số nguyên, nếu không một cảnh báo sẽ được đưa ra.

He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
8

Ví dụ trên sẽ xuất ra:

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
0

Ghi chú::

Giá trị được truy cập từ các hàm, cuộc gọi phương thức, biến lớp tĩnh và hằng số lớp bên trong

He drank some apple juice.
He drank some juice made of .
He drank some juice made of apples.
9 sẽ được hiểu là tên của một biến trong phạm vi mà chuỗi được xác định. Sử dụng niềng răng xoăn đơn (
He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
0) sẽ không hoạt động để truy cập các giá trị trả về của các hàm hoặc phương thức hoặc các giá trị của hằng số lớp hoặc biến lớp tĩnh.
The character at index -2 is n.
Changing the character at index -3 to o gives strong.
1
.

Ghi chú::

Giá trị được truy cập từ các hàm, cuộc gọi phương thức, biến lớp tĩnh và hằng số lớp bên trong

He drank some apple juice.
He drank some juice made of .
He drank some juice made of apples.
9 sẽ được hiểu là tên của một biến trong phạm vi mà chuỗi được xác định. Sử dụng niềng răng xoăn đơn (
He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
0) sẽ không hoạt động để truy cập các giá trị trả về của các hàm hoặc phương thức hoặc các giá trị của hằng số lớp hoặc biến lớp tĩnh.

Ghi chú::

Giá trị được truy cập từ các hàm, cuộc gọi phương thức, biến lớp tĩnh và hằng số lớp bên trong

He drank some apple juice.
He drank some juice made of .
He drank some juice made of apples.
9 sẽ được hiểu là tên của một biến trong phạm vi mà chuỗi được xác định. Sử dụng niềng răng xoăn đơn (
He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
0) sẽ không hoạt động để truy cập các giá trị trả về của các hàm hoặc phương thức hoặc các giá trị của hằng số lớp hoặc biến lớp tĩnh.

Truy cập và sửa đổi chuỗi theo ký tự

Các ký tự trong các chuỗi có thể được truy cập và sửa đổi bằng cách chỉ định độ lệch dựa trên 0 của ký tự mong muốn sau chuỗi sử dụng khung mảng vuông, như trong $ str [42]. Hãy nghĩ về một chuỗi như một mảng các ký tự cho mục đích này. Có thể sử dụng các hàm Subr () và Subr_Replace () khi bạn muốn trích xuất hoặc thay thế nhiều hơn 1 ký tự.string using the

The character at index -2 is n.
Changing the character at index -3 to o gives strong.
5 cast or the strval() function. String conversion is automatically done in the scope of an expression where a string is needed. This happens when using the echo or print functions, or when a variable is compared to a string. The sections on Types and Type Juggling will make the following clearer. See also the settype() function.

Lưu ý: Kể từ Php 7.1.0, độ lệch chuỗi âm cũng được hỗ trợ. Chúng chỉ định độ lệch từ cuối chuỗi. Trước đây, độ lệch âm phát ra

He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
4 để đọc (mang lại một chuỗi trống) và
He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
5 để viết (khiến chuỗi không bị ảnh hưởng).bool
The character at index -2 is n.
Changing the character at index -3 to o gives strong.
6
value is converted to the string
The character at index -2 is n.
Changing the character at index -3 to o gives strong.
7. bool
The character at index -2 is n.
Changing the character at index -3 to o gives strong.
8
is converted to
The character at index -2 is n.
Changing the character at index -3 to o gives strong.
9 (the empty string). This allows conversion back and forth between bool and string values.

Lưu ý: Trước Php 8.0.0, các chuỗi cũng có thể được truy cập bằng niềng răng, như trong $ str {42}, cho cùng một mục đích. Cú pháp nẹp xoăn này đã được dùng hết là Php 7.4.0 và không còn được hỗ trợ kể từ Php 8.0.0.int or float is converted to a string representing the number textually (including the exponent part for floats). Floating point numbers can be converted using exponential notation (

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
00).

Ghi chú::

Cảnh báosetlocale() function.

Viết vào một miếng đệm ngoài phạm vi Chuỗi với khoảng trắng. Các loại không số nguyên được chuyển đổi thành số nguyên. Loại bù bất hợp pháp phát ra

He drank some apple juice.
He drank some orange juice.
He drank some purple juice.
John Smith drank some apple juice.
John Smith then said hello to Jane Smith.
John Smith's wife greeted Robert Paulsen.
Robert Paulsen greeted the two .
5. Chỉ có ký tự đầu tiên của chuỗi được gán được sử dụng. Kể từ Php 7.1.0, việc gán một chuỗi trống ném một lỗi nghiêm trọng. Trước đây, nó đã chỉ định một byte null.s are always converted to the string
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
02; because of this, echo and print can not by themselves show the contents of an array. To view a single element, use a construction such as
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
03. See below for tips on viewing the entire contents.

Trong nội bộ, chuỗi PHP là mảng byte. Do đó, việc truy cập hoặc sửa đổi một chuỗi bằng cách sử dụng khung mảng không an toàn nhiều byte và chỉ nên được thực hiện với các chuỗi trong mã hóa một byte như ISO-8859-1.objects to string, the magic method __toString must be used.

Lưu ý: Kể từ Php 7.1.0, việc áp dụng toán tử chỉ mục trống trên một chuỗi trống ném một lỗi nghiêm trọng. Trước đây, chuỗi trống được chuyển đổi âm thầm thành một mảng.s are always converted to strings with the structure

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
04, where
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
05 is the resource number assigned to the resource by PHP at runtime. While the exact structure of this string should not be relied on and is subject to change, it will always be unique for a given resource within the lifetime of a script being executed (ie a Web request or CLI process) and won't be reused. To get a resource's type, use the get_resource_type() function.

The character at index -2 is n.
Changing the character at index -3 to o gives strong.
1 luôn được chuyển đổi thành một chuỗi trống. is always converted to an empty string.

Như đã nêu ở trên, trực tiếp chuyển đổi một mảng, đối tượng hoặc tài nguyên thành một chuỗi không cung cấp bất kỳ thông tin hữu ích nào về giá trị ngoài loại của nó. Xem các hàm print_r () và var_dump () để biết các phương tiện hiệu quả hơn để kiểm tra nội dung của các loại này.array, object, or resource to a string does not provide any useful information about the value beyond its type. See the functions print_r() and var_dump() for more effective means of inspecting the contents of these types.

Hầu hết các giá trị PHP cũng có thể được chuyển đổi thành chuỗi để lưu trữ vĩnh viễn. Phương pháp này được gọi là tuần tự hóa và được thực hiện bởi hàm serialize ().strings for permanent storage. This method is called serialization, and is performed by the serialize() function.

Chi tiết về loại chuỗi

Chuỗi trong PHP được triển khai dưới dạng một mảng byte và số nguyên cho biết độ dài của bộ đệm. Nó không có thông tin về cách các byte đó dịch sang các ký tự, để lại nhiệm vụ đó cho lập trình viên. Không có giới hạn về các giá trị mà chuỗi có thể bao gồm; Cụ thể, các byte có giá trị

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
07 (byte nul byte)) được cho phép ở bất cứ đâu trong chuỗi (tuy nhiên, một vài chức năng, cho biết trong hướng dẫn này không phải là an toàn nhị phân, có thể gửi các chuỗi cho các thư viện bỏ qua dữ liệu sau khi Nul byte.)string in PHP is implemented as an array of bytes and an integer indicating the length of the buffer. It has no information about how those bytes translate to characters, leaving that task to the programmer. There are no limitations on the values the string can be composed of; in particular, bytes with value
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
07 (“NUL bytes”) are allowed anywhere in the string (however, a few functions, said in this manual not to be “binary safe”, may hand off the strings to libraries that ignore data after a NUL byte.)

Bản chất này của loại chuỗi giải thích lý do tại sao không có loại BYTE riêng biệt trong các chuỗi PHP - các chuỗi đảm nhận vai trò này. Các chức năng trả về không có dữ liệu văn bản - ví dụ, dữ liệu tùy ý đọc từ ổ cắm mạng - vẫn sẽ trả về chuỗi.

Cho rằng PHP không ra lệnh cho một mã hóa cụ thể cho các chuỗi, người ta có thể tự hỏi làm thế nào các chữ cái được mã hóa. Chẳng hạn, chuỗi

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
08 tương đương với
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
09 (ISO-8859-1),
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
10 (Mẫu UTF-8, C),
PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
11 (Mẫu UTF-8, D) hoặc bất kỳ biểu diễn có thể nào khác? Câu trả lời là chuỗi sẽ được mã hóa theo bất kỳ thời trang nào được mã hóa trong tệp tập lệnh. Do đó, nếu tập lệnh được viết trong ISO-8859-1, chuỗi sẽ được mã hóa trong ISO-8859-1, v.v. Tuy nhiên, điều này không áp dụng nếu Zend Multibyte được bật; Trong trường hợp đó, tập lệnh có thể được viết trong một mã hóa tùy ý (được khai báo rõ ràng hoặc được phát hiện) và sau đó được chuyển đổi thành một mã hóa nội bộ nhất định, sau đó là mã hóa sẽ được sử dụng cho các chuỗi chữ. Lưu ý rằng có một số ràng buộc đối với việc mã hóa tập lệnh (hoặc trên mã hóa nội bộ, nên kích hoạt đa tế bào -1. Tuy nhiên, lưu ý rằng các mã hóa phụ thuộc trạng thái trong đó các giá trị byte giống nhau có thể được sử dụng ở trạng thái dịch chuyển ban đầu và không khởi đầu có thể có vấn đề.

Tất nhiên, để trở nên hữu ích, các chức năng hoạt động trên văn bản có thể phải đưa ra một số giả định về cách chuỗi được mã hóa. Thật không may, có nhiều biến thể về vấn đề này trong suốt các chức năng của PHP:

  • Một số chức năng cho rằng chuỗi được mã hóa trong một số (bất kỳ) mã hóa byte nào, nhưng chúng không cần phải giải thích các byte đó là ký tự cụ thể. Đây là trường hợp của, ví dụ, chuỗi con (), strpos (), strlen () hoặc strcmp (). Một cách khác để nghĩ về các chức năng này là hoạt động trên bộ đệm bộ nhớ, tức là, chúng hoạt động với các byte và độ lệch byte.substr(), strpos(), strlen() or strcmp(). Another way to think of these functions is that operate on memory buffers, i.e., they work with bytes and byte offsets.
  • Các chức năng khác được thông qua mã hóa của chuỗi, có thể chúng cũng cho rằng mặc định nếu không có thông tin nào được đưa ra. Đây là trường hợp của htmlentity () và phần lớn các chức năng trong phần mở rộng MBString.htmlentities() and the majority of the functions in the mbstring extension.
  • Những người khác sử dụng ngôn ngữ hiện tại (xem setlocale ()), nhưng hoạt động byte-by-byte. Đây là trường hợp của strcasecmp (), strtoupper () và ucfirst (). Điều này có nghĩa là chúng chỉ có thể được sử dụng với mã hóa một byte, miễn là mã hóa được khớp với địa phương. Chẳng hạn
    PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
    
    12 có thể trả về
    PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
    
    13 nếu locale được đặt chính xác và
    PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
    
    14 được mã hóa với một byte duy nhất. Nếu nó được mã hóa trong UTF-8, kết quả chính xác sẽ không được trả về và chuỗi kết quả có thể hoặc không được trả về bị hỏng, tùy thuộc vào ngôn ngữ hiện tại.setlocale()), but operate byte-by-byte. This is the case of strcasecmp(), strtoupper() and ucfirst(). This means they can be used only with single-byte encodings, as long as the encoding is matched by the locale. For instance
    PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
    
    12 may return
    PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
    
    13 if the locale is correctly set and
    PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
    
    14 is encoded with a single byte. If it is encoded in UTF-8, the correct result will not be returned and the resulting string may or may not be returned corrupted, depending on the current locale.
  • Cuối cùng, họ có thể chỉ cho rằng chuỗi đang sử dụng mã hóa cụ thể, thường là UTF-8. Đây là trường hợp của hầu hết các chức năng trong tiện ích mở rộng INTL và trong phần mở rộng PCRE (trong trường hợp cuối cùng, chỉ khi sử dụng công cụ sửa đổi
    PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
    
    15). Mặc dù điều này là do mục đích đặc biệt của chúng, hàm utf8_decode () giả định mã hóa UTF-8 và hàm utf8_encode () giả định mã hóa ISO-8859-1.utf8_decode() assumes a UTF-8 encoding and the function utf8_encode() assumes an ISO-8859-1 encoding.

Cuối cùng, điều này có nghĩa là viết các chương trình chính xác bằng cách sử dụng Unicode phụ thuộc vào việc tránh cẩn thận các chức năng sẽ không hoạt động và rất có thể sẽ làm hỏng dữ liệu và sử dụng thay vào đó các chức năng hoạt động chính xác, thường là từ các phần mở rộng INTL và MBString. Tuy nhiên, sử dụng các chức năng có thể xử lý mã hóa Unicode chỉ là khởi đầu. Bất kể các chức năng mà ngôn ngữ cung cấp, điều cần thiết là phải biết đặc tả Unicode. Chẳng hạn, một chương trình giả định chỉ có chữ hoa và chữ thường đang đưa ra một giả định sai.

John ¶

6 năm trước

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
16

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
17

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
18

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
19

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
20

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
21

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
22

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
23

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
24

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
25

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
26

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
27

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
28

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
29

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
30

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
31

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
32

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
33

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
34

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
35

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
36

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
37

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
38

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
39

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
40

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
41

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
42

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
43

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
44

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

gtisza tại gmail dot com

10 năm trước

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
46

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
47

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
48

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
49

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
50

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

rác tại iglou dot eu ¶

6 năm trước

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
52

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
53

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
54

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
55

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
56

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
57

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
58

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

gtisza tại gmail dot com

10 năm trước

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
60

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
61

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

rác tại iglou dot eu ¶

10 năm trước

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
63

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
64

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
65

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

rác tại iglou dot eu ¶

Ray.paseur đôi khi sử dụng gmail ¶

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
67

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
68

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
69

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
70

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

3 năm trước

6 năm trước

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
72

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
73

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
74

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
75

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
76

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

VSOEKDOG tại Gmail Dot Com ¶

OG tại Gams Dot tại ¶

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
78

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
79

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

15 năm trước

Sideshowanthony tại googlemail dot com ¶

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
81

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
82

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

Lelon tại Lelon Dot Net

18 năm trước

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
84

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
85

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
86

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
87

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
88

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
89

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
90

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
91

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
92

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

Steve tại MrClay Dot org ¶

OG tại Gams Dot tại ¶

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
94

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
95

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
96

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
97

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
98

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
99

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
00

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
01

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

15 năm trước

Sideshowanthony tại googlemail dot com ¶

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
03

Lelon tại Lelon Dot Net

Sideshowanthony tại googlemail dot com ¶

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
04

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
05

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
06

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

Lelon tại Lelon Dot Net

6 năm trước

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
08

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
09

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
10

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
11

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
12

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
13

18 năm trước

Steve tại MrClay Dot org ¶

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
14

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
15

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
16

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
17

14 năm trước

Ray.paseur đôi khi sử dụng gmail ¶

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
18

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
19

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

3 năm trước

VSOEKDOG tại Gmail Dot Com ¶

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
21

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
22

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
23

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
24

OG tại Gams Dot tại ¶

15 năm trước

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
25

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
26

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
27

Sideshowanthony tại googlemail dot com ¶

Steve tại MrClay Dot org ¶

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
28

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
29

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45

14 năm trước

necrodust44 tại gmail dot com ¶

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
31

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
32

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
33

8 năm trước

VSOEKDOG tại Gmail Dot Com ¶

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
34

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
35

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
36

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
37

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
38

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
39

OG tại Gams Dot tại ¶

15 năm trước

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
40

array(2) {
  [0] =>
  string(11) "a
  b
    c"
  [1] =>
  string(5) "d e f"
}
41

PHP Parse error:  Invalid indentation - tabs and spaces cannot be mixed in example.php line 8
45