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