I wanted to try to do some adaptation of one function but now I have one blocking point.
When I am checking with nuDebug the current array value - I have data as in the first box. So I wrote some code (in the second box) which is suppoused to generate results exactly as in the first box.
but can not get the same result despite many trials (the main problem is stdClass Object) - one of the results as example is in the last box.
And the question how to modify my code (from second box) that it will generate result exactly as visible in the first box?
Code: Select all
[0] : Array
(
[0] => stdClass Object
(
[title] => Hotele - Miejsce
[display] => hot_miejsce
[align] => l
[width] => 450
[order] => 10
[format] =>
)
[1] => stdClass Object
(
[title] => Aktualizacja
[display] => hot_updated
[align] => c
[width] => 200
[order] => 20
[format] =>
)
)
so for example with following code:
Code: Select all
$testarray = array(
'stdClass Object'=>
array('title' => 'Hotele - Miejsce',
'display' => 'hot_miejsce',
'align' => 'l',
'width' => 450,
'order' => 10,
'format' =>'' ,),
array('title' => 'Aktualizacja',
'display' => 'hot_updated',
'align' => 'c',
'width' => 200,
'order' => 20,
'format' =>'' ,),
);
Code: Select all
[0] : Array
(
[stdClass Object] => Array
(
[title] => Hotele - Miejsce
[display] => hot_miejsce
[align] => l
[width] => 450
[order] => 10
[format] =>
)
[0] => Array
(
[title] => Aktualizacja
[display] => hot_updated
[align] => c
[width] => 200
[order] => 20
[format] =>
)
)