Hello, I'm a beginner and I'm still learning how to work with variables
I would like to know how to make it so that when I click on the button, the variable and the text showing it increases, adding +1 to the value with each click. Can anybody help me??
My code looks like this (not sure about var_dump):
	<!DOCTYPE html>
<html>
    <head>
        <title>Test PHP</title>
    </head>
    <body>
    <?php
    $var = 0;
    ?>
        <button onclick="<? var_dump(++$var); ?>"> click here </button>
    <?php
    echo $var
    ?>
    </body>
</html>