Getting a GLOBAL value on a page PHP vs NODE

I have set globals in my Node project.


and i can “call” these on my nodejs page as …
<%=_(‘servertimenow’,locals)%> and it will render the server time NOW…

I am now trying to do the same with PHP…
php-global
I have tried the same approach… to call the global <%=_(‘servertimenow’,locals)%> but not working for me. So i assume in PHP you would use a different line of code to do this…

If i look in the dev tools. I can see it in the output in the browser console, but how do i get it onto my page.

Thank you

Community Page
Last updated: