Alternative for ARRAY keyword
Posted: Mon Sep 27, 2010 3:40 pm
So I have this data factory class (seen below), which will populate the correct data container object with it's data depending on what type of data your specifying it as (or leaving it to auto detect if none specified). However, this is not my issue and just wanted to give a little background.
Now, my problem is ARRAY is a reserved word in PHP. So, instead of ARRAY, I have used the word COLLECTION. This doesn't quite sit well with me, and was wondering if anyone thought this was a good substitute or if they can recommend something better.
I know I'm kind of knit picking, but was just curious about public opinion.
Thanks!
Now, my problem is ARRAY is a reserved word in PHP. So, instead of ARRAY, I have used the word COLLECTION. This doesn't quite sit well with me, and was wondering if anyone thought this was a good substitute or if they can recommend something better.
I know I'm kind of knit picking, but was just curious about public opinion.
Thanks!
Code: Select all
class Northern_Data
{
const CURRENCY = 'Northern_Data_Currency';
const INT32 = 'Northern_Data_Int32';
const INT64 = 'Northern_Data_Int64';
const STRING = 'Northern_Data_String';
const COLLECTION = 'Northern_Data_Collection';
//snip snip
}