In the release: PHP 7.3 alpha 4, ReactPHP 1.0 LTS and other releases, the latest offer "Namespace Visiblity for Class, Interface and Trait" from PHP Internals, recording of reports and webinars, a portion of useful tools, and much more.
Enjoy reading!
array_key_first()
/ array_key_last()
for working with arrays: $array = ['a' => 1, 'b' => 2, 'c' => 3]; $firstKey = array_key_first($array); // 'a' $lastKey = array_key_last($array); // 'c'
namespace Example { public class A { private $property; } protected class B { public $property; } private class C { protected $property; } } namespace OtherVendor { public class Factory { public function A() { return new \Example\A(); // Allowed by public } public function B() { return new \Example\B(); // Not allowed because // namespace is not shared } public function C() { return new \Example\C(); // Not allowed because // not from same namespace } } }
use Rayne\Ecoji\Ecoji; $ecoji = new Ecoji; $ecoji->encode("Base64 is so 1999, isn\'t there something better?\n");
Thanks for attention!
If you notice an error or inaccuracy - please inform the PM .
Write questions and suggestions by mail or twitter .
Send link
Search links for all digests
← Previous release: PHP Digest number 134
Source: https://habr.com/ru/post/417897/
All Articles