php 7.4 curly brackets code example Example: add brackets to string php $withbrackets = '[' . $strName . ']';