01-15-2008, 02:30 AM
|
#2 (permalink)
|
|
La Vida es Sueño
Join Date: Sep 2007
Location: Oldham
Posts: 2,267
Thanks: 90
|
I'm sure others can give you a better description, but in a nutshell, namespaces are essentially a way in which to cipher of various code into namespaces. Think of a namespace as a category. Therefore anything in that category can have the same function name as another function in a different namespace (or category).
Basically, when you and others develop a PHP script now, you'll see you have to append some text that identifies your script to each class you create for that script, but with namespaces you can place all your classes in a namespace and all the classes within there can be named whatever you like, because they won't conflict with anything else.
Welcome back to TalkPHP by the way  It's a pleasure to have you round again!
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
|
|
|