From a follow on from my previous post about namespace, when you want to use another name, shorter than the actual namespace of the namespace you are able to use “use”. Probably best to show in code
include "codingfriends.php"; use codingfriends as cf; echo cf\sayHello()."
the codingfriends.php file is
so that the “use” will alter the namespace of codingfriends to cf instead so that you are able to call codingfriends as cf, so when
is called it will call the codingfriends\sayHello() function.