I am trying to understand syntax such as the following in PHP:
$query = 'LIKE {string:search}';
I thought that use of the curly braces required a $
in front of the variable like this:
$query = 'LIKE {$search}';
What is the colon syntax?
PHP中没有这样的冒号语法。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.