Jump to content

var_dump ? var_export?


alanchai

Recommended Posts

Hi,

Newbies here.

I have a string variable $AR which has values of
this are text string---> array (array ("","A", "B"), array ("X",1,2) array ("Y", 3, 4))

How can I push this string to an array say $code['var'] so that it takes the array format??

I tried the following, but it doesn't work.

$code['var'] = $AR;

$code['var'] becomes a string after the assignment.

I tried using var_dump and var_export, can't get the result I am expecting. Perhaps I am going the wrong direction.

Any advise?
Link to comment
https://forums.phpfreaks.com/topic/6730-var_dump-var_export/
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.