![]() |
Filling an array with an array
I'm writing a script where the user can input certain items, which are then converted to php code and written to a file. A cron job will then be used to run that file. For the most part, it is all working fine but I am having problems get an array written correctly. Here is an example:
In the main code that displays for the user: PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
PHP Code:
|
PHP Code:
|
or, you could simply put the $data['options'] variable into the single quotes...I guess...assuming that you're evaluating the code after.
|
Use serialization insted, much easier, but abit slower:
PHP Code:
=) |
I appreciate all of the suggestions though I wasn't able to get any to work.
1 Quote:
2 Quote:
PHP Code:
3 Quote:
PHP Code:
PHP Code:
4 Quote:
PHP Code:
|
| All times are GMT. The time now is 02:07 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0