I had borrowed this piece of code ${!${''} = date('Y-m-d')}
but I cannot for the life of me find anything that tells me what the ${!${''}
means and I do not remember what it does. I have looked in the PHP manual and on here and I find plenty for operators. Just not this.
If someone could explain what this is, breaking each part down, and what it does I would appreciate it. Just trying to find ${!${''}
is vague.
EDIT: This snippet of code was in the value attribute of an input element with type="date". And the snippet was assigned a variable
<?php
$input = '<input id="trim_date" class="w3-input w3-border w3-border-black" type="date" name="date_trimmed" value="'.${!${''} = date('Y-m-d')}.'" min="2022-01-01" max="2030-12-31" required>';
?>