PHP reserved words as namespaces and class names

Viewed 5662

Recently I've started converting my framework to use the php namespaces and one question to which I can't seem to find the answer is - is it 'legal' to use reserved words such as 'Object', 'Array', 'String' as namespace and class name within that namespace? An example would be:

namespace System\Object;


class String { }

class Array { }
1 Answers
Related