File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -151,9 +151,8 @@ var_dump(round(25/7)); // float(4)
151151 <title >Converting to integer</title >
152152
153153 <simpara >
154- To explicitly convert a value to <type >int</type >, use either the
155- <literal >(int)</literal > or <literal >(integer)</literal > casts. However, in
156- most cases the cast is not needed, since a value will be automatically
154+ To explicitly convert a value to <type >int</type >, use the <literal >(int)</literal > cast.
155+ However, in most cases the cast is not needed, since a value will be automatically
157156 converted if an operator, function or control structure requires an
158157 <type >int</type > argument. A value can also be converted to
159158 <type >int</type > with the <function >intval</function > function.
Original file line number Diff line number Diff line change @@ -317,16 +317,16 @@ var_dump($bar);
317317 <member ><literal >(unset)</literal > - cast to <type >NULL</type ></member >
318318 </simplelist >
319319
320- <note >
320+ <warning >
321321 <para >
322322 <literal >(integer)</literal > is an alias of the <literal >(int)</literal > cast.
323323 <literal >(boolean)</literal > is an alias of the <literal >(bool)</literal > cast.
324324 <literal >(binary)</literal > is an alias of the <literal >(string)</literal > cast.
325325 <literal >(double)</literal > and <literal >(real)</literal > are aliases of
326326 the <literal >(float)</literal > cast.
327- These casts do not use the canonical type name and are not recommended .
327+ These casts do not use the canonical type name and are deprecated as of PHP 8.5.0 .
328328 </para >
329- </note >
329+ </warning >
330330
331331 <warning >
332332 <simpara >
You can’t perform that action at this time.
0 commit comments