Hi, there, in Staxland. I was wondering if there is a function or an easy way to change an associative array into an indexed array.
To develop, I use the Zend framework, and I have a point on my site where I take the SQL table row as an associative array. I passed it javascript through echo in JSON. However, I noticed that I can see database column names in Firebug. Outsiders know that the names of your tables and columns are a great no-no security, so I would like to change it from
SQLarray[user_id] SQLarray[block_id] SQLarray[b_price] etc.
to
SQLarray[0] SQLarray[1] SQLarray[2] etc.
Is there a good way to do this?
It would also be useful to have Zend_Table_Abstract-> fetchAll () return a non-associative array, but I don't think this is possible. Thanks for your help!
php associative-array zend-framework associative
Ethan Jun 30 '09 at 18:10 2009-06-30 18:10
source share