Jump to content

Define Arrays


eyalrosen123rulezz

Recommended Posts

Simple answer: no, you can't define arrays like that.

 

Read: http://us3.php.net/manual/en/function.define.php

 

Find where is says Parameters and read the value part. It tells you what is allowed.

 

If you really want to define an array that badly, I think Ken did have a strategy in using serialize or var_export (not sure which one) and then you can try to define that variable as a string.

Link to comment
https://forums.phpfreaks.com/topic/85207-define-arrays/#findComment-435532
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.