简体   繁体   中英

Embedded string syntax with colon and curly brace in PHP

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM