0
What I need is this, I have this html code:
<div php-if="{{valor}}>0">CONTEUDO QUE SERÁ MOSTRADO DINAMICAMENTE</div>
The variable "{{value}}" I can already return dynamically. What I would like to do now is to run a php function that identifies that I am making an IF comparison and if it returns me false, this entire tag would be removed from the string. The result would be an html string, but without this example tag.
NOTE: It’s a bit like what Vue.js does, but I want to do it on the server side via php.
You want to compare a value that comes from Vue by php?
– bfavaretto
Hi good night and thanks for the return. I am not using Vue.js, I put as an example just for better understanding.
– Walison Gomes