Hi I am trying to push loop though and array and push it to my new array. I am currently getting this error..
array_push() expects parameter 1 to be array, string
I cannot work out why this is not working, my code looks like this.
$data['text'] = array();
foreach( $this->xml['paragraphs']['paragraph'] as $array )
{
array_push($array['text'], $data);
}
My array
[paragraphs] => Array
(
[paragraph] => Array
(
[0] => Array
(
[text] => Solid wood door leading to entrance hallway, doors leading to Lounge/ Dining room and Shower room, double radiator, solid wood frame sash window to front, painted wood panell ceiling with single light, Indian slate floor.
)
[1] => Array
(
[text] => Solid wood frame sash window to front, double radiator, bathroom suite comrising: shower cubicle with obscure perspex panells, WC and vanity sink. Painted wood panel ceiling with single light. Heated towel rail,
)