Y
Y
YakovSpb2020-06-04 17:16:54
WordPress
YakovSpb, 2020-06-04 17:16:54

If I display a variable in function.php via echo, is it displayed on all pages?

something is not visible
in function.php through echo I display an array, for some reason it is not visible on the page

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
StApostol, 2020-06-18
@StApostol

The echo function only works with strings, if you need to print an array, use print_r
https://www.php.net/manual/en/function.echo.php
https://www.php.net/manual/en/function.print- r.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question