print the contents of PHP variable as text string in HTML

后端 未结 5 2008
旧时难觅i
旧时难觅i 2021-01-21 21:23

in a wordpress php script, I have the following:

echo \'
\' . $slide_media . \'
\' . \
5条回答
  •  醉酒成梦
    2021-01-21 22:00

    To see what is within a variable (maybe it is in array, an object or something else) use print_r($slide_media); or var_dump($slide_media);

提交回复
热议问题