I use var_dump to debug some php scripts locally where I have php 5.6 installed and it formats beautifully on all browsers.
array (size=1)
0 =>
object(WP_Post)[1173]
public 'ID' => int 33
public 'post_author' => string '1' (length=1)
public 'post_date' => string '2018-01-11 17:26:22' (length=19)
public 'post_date_gmt' => string '2018-01-11 23:26:22'(length=19)
When I upload the same file to a production box with php 7, the output is there, but the format is gone! any reason or clue why this is happening?
array(1) { [0]=> object(stdClass)#1162 (3) { ["ID"]=> string(2) "61" ["post_title"]=> str
Aucun commentaire:
Enregistrer un commentaire