@@ -252,10 +252,10 @@ echo ANIMALS[1]; // outputs "cat"
252
252
<sect1 xml : id =" language.constants.magic" >
253
253
<title >Magic constants</title >
254
254
<para >
255
- There are nine magical constants that change depending on
255
+ There are a few magical constants that change depending on
256
256
where they are used. For example, the value of
257
257
<constant >__LINE__</constant > depends on the line that it's
258
- used on in your script. All these "magical" constants are resolved
258
+ used on in a script. All these "magical" constants are resolved
259
259
at compile time, unlike regular constants, which are resolved at runtime.
260
260
These special constants are case-insensitive and are as follows:
261
261
</para >
@@ -303,8 +303,8 @@ echo ANIMALS[1]; // outputs "cat"
303
303
<entry >
304
304
The class name. The class name includes the namespace
305
305
it was declared in (e.g. <literal >Foo\Bar</literal >).
306
- When used
307
- in a trait method, __CLASS__ is the name of the class the trait
306
+ When used inside a trait method,
307
+ < constant > __CLASS__</ constant > is the name of the class the trait
308
308
is used in.
309
309
</entry >
310
310
</row >
@@ -324,7 +324,9 @@ echo ANIMALS[1]; // outputs "cat"
324
324
<row xml : id =" constant.property" >
325
325
<entry ><constant >__PROPERTY__</constant ></entry >
326
326
<entry >
327
- Only valid inside a <link linkend =" language.oop5.property-hooks" >property hook</link >. It is equal to the name of the property.
327
+ Only valid inside a
328
+ <link linkend =" language.oop5.property-hooks" >property hook</link >.
329
+ It is equal to the name of the property.
328
330
</entry >
329
331
</row >
330
332
<row xml : id =" constant.namespace" >
0 commit comments