Re: [PHP-DEV] Changes in namespace importing

2017-11-28 Thread Derick Rethans
On Mon, 27 Nov 2017, Michael Morris wrote: > I'm sure the internal coders will correct me if I'm wrong on this, but > as I understand it PHP has no notion of packages, yet many calls to > modify how namespace importing works seem to be under the illusion > that packages exist. This is understan

Re: [PHP-DEV] Changes in namespace importing

2017-11-27 Thread Michael Morris
I'm sure the internal coders will correct me if I'm wrong on this, but as I understand it PHP has no notion of packages, yet many calls to modify how namespace importing works seem to be under the illusion that packages exist. This is understandable, packages are namespaces are terms used somewhat

Re: [PHP-DEV] Changes in namespace importing

2017-11-24 Thread Rowan Collins
On 24 November 2017 07:05:52 GMT+00:00, "Khawer ." wrote: >We use 'use' keyword to import other namespaces, namespace classes, >namespace functions, and namespace constants. > >Example >1) use abc; (Import abc namespace) >2) use abc\ClassB; (Import ClassB from abc namespace) Although these are

[PHP-DEV] Changes in namespace importing

2017-11-23 Thread Khawer .
We use 'use' keyword to import other namespaces, namespace classes, namespace functions, and namespace constants. Example 1) use abc; (Import abc namespace) 2) use abc\ClassB; (Import ClassB from abc namespace) 3) use function abc\sayhello; (Import sayhello function from abc namespace) 4) use con