Buenas,
Me pregunto como puedo escribir la salida de cualquier array, como por ej. el siguiente en un archivo TXT.
Para sacar la salida del array utilizo
print_r($array). Sin embargo, si quiero pasarlo a un txt no me muestra el contenido del array
Código php:
Ver originalstdClass Object
(
[type] => 1
[encoding] => 0
[ifsubtype] => 1
[subtype] => MIXED
[ifdescription] => 0
[ifid] => 0
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
(
[0] => stdClass Object
(
[attribute] => BOUNDARY
[value] => =_49f16ff92b161073280b5c7e7d15eca6
)
)
(
[0] => stdClass Object
(
[type] => 0
[encoding] => 4
[ifsubtype] => 1
[subtype] => PLAIN
[ifdescription] => 0
[ifid] => 0
[lines] => 5
[bytes] => 60
[ifdisposition] => 0
[ifdparameters] => 0
[ifparameters] => 1
(
[0] => stdClass Object
(
[attribute] => CHARSET
[value] => utf-8
)
)
)
[1] => stdClass Object
(
[type] => 5
[encoding] => 3
[ifsubtype] => 1
[subtype] => PNG
[ifdescription] => 0
[ifid] => 0
[bytes] => 504
[ifdisposition] => 1
[disposition] => ATTACHMENT
[ifdparameters] => 1
(
[0] => stdClass Object
(
[attribute] => FILENAME
[value] => color-palet.PNG
)
)
[ifparameters] => 1
(
[0] => stdClass Object
(
[attribute] => NAME
[value] => color-palet.PNG
)
)
)
)
)
¿Sabéis si existe alguna forma de hacerlo?
Muchas gracias de antemano!