Simple question: Can array key values contain and/or start with slashs? Ex: $array['/test/test'] = 'Something';
Thanks
no
Sure they can.
<? $array['/test/test'] = 'Something'; print_r( $array ); ?>
will produce...
Array ( [/test/test] => Something )
I tried that too intenz and it worked but I was just wandering if that is "proper" php. I questioned if the array key was a variable name or not because var names cannot have slashes. I THINK the key can have any type of string (which would include slashes) but I'm not sure.
Thanks guys