note 119681 added to faq
| From: | dilovanmatini at yahoo dot com | Date: | Tue, 02 Aug 2016 07:03:33 +0000 |
| Subject: | note 119681 added to faq | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206148@lists.php.net to get a copy of this message | ||
Why not add this style of coding:
// old style
echo substr( strtolower( trim( $string ) ), 0, 4 );
// new style
echo $string->trim()->strtolower()->substr( 0, 4 );
or
// old style
$array = array_merge( $array, $array2 );
$array = array_values( $array );
echo $array[12];
// new style
echo $array->merge( $array2 )->values->get(7);
it is too simple for using
----
Server IP: 72.52.91.14
Probable Submitter: 130.193.190.164
----
Manual Page -- http://php.net/manual/en/faq.php
Edit -- https://master.php.net/note/edit/119681
Del: integrated -- https://master.php.net/note/delete/119681/integrated
Del: useless -- https://master.php.net/note/delete/119681/useless
Del: bad code -- https://master.php.net/note/delete/119681/bad+code
Del: spam -- https://master.php.net/note/delete/119681/spam
Del: non-english -- https://master.php.net/note/delete/119681/non-english
Del: in docs -- https://master.php.net/note/delete/119681/in+docs
Del: other reasons-- https://master.php.net/note/delete/119681
Reject -- https://master.php.net/note/reject/119681
Search -- https://master.php.net/manage/user-notes.php