php - array containing two arrays with no key -


i bug squashing script when discovered array ($array) contained 2 arrays no key so:

array(19) {   ["id"]=>   string(3) "243"   ["var"]=>   string(4) "test" }  array(10) {   ["id"]=>   int(243) } 

they both contain different data, removed of show i'm talking about. find cause of , fix it, need temporary fix value of var first array. when use print_r , var_dump actual value of var null. reason can't seem store value of var in variable.

any ideas?

here full array (with sensitive data masked)

array (     [id] => 243     [ordering] => 0     [state] => 1     [checked_out] => 203     [checked_out_time] => 2013-07-17 14:28:15     [status] => new     [order_id] => 84     [username] => 267     [ankleside] => left     [engraving] => left     [serial] => 152     [color_padding] => left     [color_shell] => left     [scan] => scan_2013-07-17_xxxxxx_x_hotmail.com_left.png     [workfile] => work_2013-07-17_xxxxxx_x_hotmail.com_left.png     [stlfile] => 2013-07-17_xxxxxx_x_hotmail.com_left_.jpg     [timespent] =>     [created_by] => 203 )  array (     [id] => 243     [status] => new     [username] => 267     [ankleside] => left     [engraving] => left     [scan] => scan_2013-07-17_xxxxxxx_x_hotmail.com_left.png     [workfile] =>     [stlfile] => fb-foto.png     [issues] => ) 

somehow var_dump(); called twice. try adding echo "done"; after var_dump($array); verify.

you add debug_print_backtrace(); see how called twice. http://www.php.net/manual/en/function.debug-print-backtrace.php


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -